Skip to content Skip to sidebar Skip to footer

Python's Urllib2 Doesn't Work On Some Sites

I found that you can't read from some sites using Python's urllib2(or urllib). An example... urllib2.urlopen('http://www.dafont.com/').read() # Returns '' These sites work when yo

Solution 1:

Try setting a different user agent. Check the answers in this link.


Post a Comment for "Python's Urllib2 Doesn't Work On Some Sites"