Impersonating other broswers...

sboyle55 at yahoo.com sboyle55 at yahoo.com
Sat Mar 5 17:24:20 EST 2005


So I wrote a quick python program (my first ever) that needs to
download pages off the web.

I'm using urlopen, and it works fine.  But I'd like to be able to
change my browser string from "Python-urllib/1.15" to instead
impersonate Internet Explorer.

I know this can be done very easily with Perl, so I'm assuming it's
also easy in Python.  How do I do it?




More information about the Python-list mailing list