import urllib foo = urllib.urlopen("http://gun.io).read() print foo
I use urllib all over my projects and have never encountered any problems.
import requests print requests.get('http://gun.io').content
import urllib print urllib.urlopen('http://gun.io').read()
import urllib import simplejson req = urllib.urlopen("https://graph.facebook.com/some_id") response = req.read() json_data = simplejson.loads(response)
import requests; print requests.get('http://gun.io').content
print __import__('requests').get('http://gun.io').content
I use urllib all over my projects and have never encountered any problems.