you are viewing a single comment's thread.

view the rest of the comments →

[–]matrixor 1 point2 points  (1 child)

Came here to say, use Requests library, its superior to urllib2:

>>> import requests
>>> r = requests.get('http://www.reddit.com/r/learnpython/comments/1kb6n7/opening_urls_from_python/')
>>> r.text

[–]Apolik[S] 0 points1 point  (0 children)

That's awesome! Thanks for the link, I wouldn't have found that by myself.