我正在使用以下python代码:
def get_data(self, url):
usock = urllib2.urlopen(url)
data = usock.read()
usock.close()
return data
To parse data from a certain website and it worked for a while.
Now something went wrong.
When I use this function now it gives me a source code but different than the one there is
when you open the view-source:url
I am using chrome for the regular website view. Is there a way to get the same source code as I see by using the "view source" option? thanks.