Re: Changing the user-agent in urllib

2007-07-08 Thread Inigo Serna
On Sun, Jul 08, 2007 at 12:21:38PM -0700, James Matthews wrote: > Is there anyway of changing the user-agent in urllib without sub classing > it? Yes, >>> import urllib >>> urllib.URLopener.version = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT >>>

Changing the user-agent in urllib

2007-07-08 Thread James Matthews
Is there anyway of changing the user-agent in urllib without sub classing it? -- http://www.goldwatches.com/watches.asp?Brand=14 http://www.jewelerslounge.com -- http://mail.python.org/mailman/listinfo/python-list