Saturday, January 20, 2018

Pretty Print a urllib urlopen Response

So, you did

data = urllib2.urlopen( full_url )

Now you want to look at the web page you got back. You try

print( data ) and that doesn't help.

Do :

print( data.read() )

https://pythonprogramming.net/urllib-tutorial-python-3/

No comments: