>>> import urllib
>>> data=urllib.url open('http://www.sec.gov/edgar/searchedgar/companysearch.h tml/').read()
>>> print data

When I do this in python it results in a 404 error saying the file is not found. The source is completely different from the actual page source.

So my question is how do I make python result in the correct page source?

Also, how would I write...