Get directory from http web site

lemon97 at gmail.com lemon97 at gmail.com
Sat Aug 6 22:01:44 EDT 2005


You might want to also modify your c:/python/Lib/urllib.py file.


By adding/modifying the following headers.

self.addheaders = [('User-agent', 'Mozilla/4.0')]
#Trick the server into thinking it is explorer

self.addheaders = [('Referer','http://www.infomedia.it')]
#Trick the site that you clicked on a link from their site.




More information about the Python-list mailing list