Inconsistent result from urllib.urlopen

Laszlo Nagy gandalf at designaproduct.biz
Thu Apr 12 14:41:06 EDT 2007


> Any ideas why I don't get the same result from the python script as I
> do from a web browser?  This problem seems to be a recent
> development.  The scripts I wrote like this worked fine for a while
> and then stopped working within the past couple of weeks.
>   
Maybe it has to do something with your user agent string. The server 
side can decide to return a different content when your user agent is 
not 'mozilla', 'internet explorer' or 'opera' etc.

Do you want to know how to change your user agent string? Google for 
it.... :-)

   Laszlo





More information about the Python-list mailing list