New issue 328 by nsw.prot...@gmail.com: user agent setting?
http://code.google.com/p/specto/issues/detail?id=328
Some site, like wikipedia return a 403 forbidden, I'm guessing because of
the user agent? Can there be an option for setting a custom user agent?
Comment #1 on issue 328 by nekoh...@gmail.com: user agent setting?
http://code.google.com/p/specto/issues/detail?id=328
Hey there, I don't experience this problem. Please specify your version, if
possible test with the bzr version, and activate debug mode to provide
debug logs.
The development version of Specto already identifies as Specto for its user
agent.
Comment #2 on issue 328 by nekoh...@gmail.com: user agent setting?
http://code.google.com/p/specto/issues/detail?id=328
(No comment was entered for this change.)
I have the same issue with Wikipedia. I use version Specto 0.3.1 that is
bundled with Ubuntu 10.04 LTS.
The last agent that you see in this window with the forbidden icon is set
to watch http://en.wikinews.org/wiki/Portal:Canada
Attachments:
spectoWikipediaForbidden.png 83.5 KB
Sorry, imaged attached.
Attachments:
spectoWikipediaForbidden.png 77.0 KB
Well, you could edit spectlib/plugins/watch_web_static.py and replace the
custom agent in there. Otherwise I'd need a patch that makes this a
behavior dependent on a gconf key :)
Ok. I'm guessing that would be line 102 of the file in question:
102 request = web_proxy.urllib2.Request(self.uri, None,
{"Accept-encoding": "gzip"}
Reading the documentation at
http://docs.python.org/dev/library/urllib.request
I think I can figure out how to modify that line.
Nah, just search for "agent" in that file :) it's the line right above it
in my case.