Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2
- request = urllib2.Request("http://www.google.com", headers={"Accept" : "text/html"})
- contents = urllib2.urlopen(request).read()
- import urllib2
- contents = urllib2.Request("http://www.google.com", headers={"Accept" : "text/html"}).Read()
Add Comment
Please, Sign In to add comment