Re: Inconsistent result from urllib.urlopen




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


.



Relevant Pages

  • Re: Inconsistent result from urllib.urlopen
    ... The scripts I wrote like this worked fine for a while ... Maybe it has to do something with your user agent string. ... saving the page from the web browser, but all the links and image ...
    (comp.lang.python)
  • Re: TurboTax.com (Here we go again...)
    ... is a User Agent string on an XP system with FireFox 3.0.5. ... set the alternate useragent header without installing a plugin. ... We just installed the windows version of Firefox ...
    (Fedora)
  • Re: Netsurf and User Agent faking
    ... NetSurf doesn't currently do this. ... the user agent string can only be changed at compile ... In some ways I would like not to use faking, ...
    (comp.sys.acorn.apps)
  • Re: TurboTax.com (Here we go again...)
    ... is a User Agent string on an XP system with FireFox 3.0.5. ... simply add this to User Agent Switcher. ... set the alternate useragent header without installing a plugin. ...
    (Fedora)
  • Re: TurboTax.com (Here we go again...)
    ... is a User Agent string on an XP system with FireFox 3.0.5. ... We just installed the windows version of Firefox ... You can also install the User Agent Switcher Firefox extension to ...
    (Fedora)