urlopen returns forbidden

monkeys paw monkey at joemoney.net
Mon Feb 28 06:38:49 CET 2011


I have a working urlopen routine which opens
a url, parses it for <a> tags and prints out
the links in the page. On some sites, wikipedia for
instance, i get a

HTTP error 403, forbidden.

What is the difference in accessing the site through a web browser
and opening/reading the URL with python urllib2.urlopen?



More information about the Python-list mailing list