3 ms·
Well...urllib is the same import urllib print urllib.urlopen('http://gun.io').read() And to be clear, you'd really never want to just print the conten
by blhack 15y ago
Well...urllib is the same
import urllib
print urllib.urlopen('http://gun.io').read()
And to be clear, you'd really never want to just print the content like that. You'd be doing something like.
import urllib
import simplejson
req = urllib.urlopen("https://graph.facebook.com/some_id")
response = req.read()
json_data = simplejson.loads(response)
(Python is syntactically pretty, imho)