python urllib. URLEncode usage demonstration

From , 4 Years ago, written in Python, viewed 52 times.
URL https://pastebin.vip/view/59b85c25
  1. >>> import urllib
  2. >>> params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
  3. >>> f = urllib.urlopen("http://www.sharejs.com/cgi-bin/query?%s" % params)
  4. >>> print f.read()

Reply to "python urllib. URLEncode usage demonstration"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website