In PHP, when I want to get a remote content (some url, for example), I use the proper functions to open files and this works perfectly.
Example:
file_get_contents('http://pt.stackoverflow.com/')
And in Python, what is the correct way to open a remote content?