Re: urllib2 - 403 that _should_ not occur.

2009-01-14 Thread ajaksu
On Jan 14, 5:14 am, Steve Holden st...@holdenweb.com wrote: ajaksu wrote: [snip evangelism stuff] OK, but be aware that the PSF doesn't monitor the bugs looking for actions to take on behalf of the Python user community. In fact we aren't overtly political in this way at all. This doesn't

Re: urllib2 - 403 that _should_ not occur.

2009-01-14 Thread Steve Holden
ajaksu wrote: On Jan 14, 5:14 am, Steve Holden st...@holdenweb.com wrote: ajaksu wrote: [snip evangelism stuff] OK, but be aware that the PSF doesn't monitor the bugs looking for actions to take on behalf of the Python user community. In fact we aren't overtly political in this way at all.

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Philip Semanchuk
On Jan 13, 2009, at 1:22 AM, Steve Holden wrote: Philip Semanchuk wrote: On Jan 12, 2009, at 6:48 PM, ajaksu wrote: On Jan 11, 11:59 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The following fails for me: from urllib2 import urlopen f =

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Steve Holden
Philip Semanchuk wrote: On Jan 13, 2009, at 1:22 AM, Steve Holden wrote: Philip Semanchuk wrote: On Jan 12, 2009, at 6:48 PM, ajaksu wrote: On Jan 11, 11:59 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The following fails for me: from urllib2 import urlopen f =

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Falcolas
On Jan 11, 6:59 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The following fails for me: from urllib2 import urlopen f = urlopen(http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml;) For what it's worth, I've had a similar problem with the urlopen as

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread ajaksu
On Jan 13, 1:33 am, Philip Semanchuk phi...@semanchuk.com wrote: I don't think I understand you clearly. Whether or not Google et al   whitelist the Python UA isn't a Python issue, is it? Hi, sorry for taking so long to reply :) I imagine it's something akin to Firefox's 'Report broken

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Philip Semanchuk
On Jan 13, 2009, at 9:42 PM, ajaksu wrote: On Jan 13, 1:33 am, Philip Semanchuk phi...@semanchuk.com wrote: I don't think I understand you clearly. Whether or not Google et al whitelist the Python UA isn't a Python issue, is it? Hi, sorry for taking so long to reply :) I imagine it's

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Steve Holden
ajaksu wrote: On Jan 13, 1:33 am, Philip Semanchuk phi...@semanchuk.com wrote: I don't think I understand you clearly. Whether or not Google et al whitelist the Python UA isn't a Python issue, is it? Hi, sorry for taking so long to reply :) I imagine it's something akin to Firefox's

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread Steven D'Aprano
On Mon, 12 Jan 2009 00:38:20 -0600, Chris Mellon wrote: Why Google would deny access to services by unknown User Agents is beyond me - especially since in most cases User Agents strings are not strict. If you look at the actual response text and not just the error code, you will get a

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread Chris Mellon
On Mon, Jan 12, 2009 at 4:34 PM, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Mon, 12 Jan 2009 00:38:20 -0600, Chris Mellon wrote: Why Google would deny access to services by unknown User Agents is beyond me - especially since in most cases User Agents strings are not

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread ajaksu
On Jan 11, 11:59 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The following fails for me: from urllib2 import urlopen f = urlopen(http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml;) Traceback (most recent call last): [...] Any helpful ideas ?

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread Philip Semanchuk
On Jan 12, 2009, at 6:48 PM, ajaksu wrote: On Jan 11, 11:59 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The following fails for me: from urllib2 import urlopen f = urlopen(http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml ) Traceback (most recent

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread Steve Holden
Philip Semanchuk wrote: On Jan 12, 2009, at 6:48 PM, ajaksu wrote: On Jan 11, 11:59 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The following fails for me: from urllib2 import urlopen f =

urllib2 - 403 that _should_ not occur.

2009-01-11 Thread James Mills
Hey all, The following fails for me: from urllib2 import urlopen f = urlopen(http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml;) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.6/urllib2.py, line 124, in urlopen return

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread Philip Semanchuk
On Jan 11, 2009, at 8:59 PM, James Mills wrote: Hey all, The following fails for me: from urllib2 import urlopen f = urlopen(http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml ) Traceback (most recent call last): File stdin, line 1, in module File

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread James Mills
On Mon, Jan 12, 2009 at 12:58 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Jan 11, 2009, at 8:59 PM, James Mills wrote: Hey all, The following fails for me: from urllib2 import urlopen f = urlopen(http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml;)

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread Philip Semanchuk
On Jan 11, 2009, at 10:05 PM, James Mills wrote: On Mon, Jan 12, 2009 at 12:58 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Jan 11, 2009, at 8:59 PM, James Mills wrote: Hey all, The following fails for me: from urllib2 import urlopen f =

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread James Mills
On Mon, Jan 12, 2009 at 1:25 PM, Philip Semanchuk phi...@semanchuk.com wrote: Oooops, I guess it is my brain that's not working, then! Sorry about that. Nps. I tried your sample and got the 403. This works for me: (...) Some sites ban UAs that look like bots. I know there's a Java-based bot

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread Chris Mellon
On Sun, Jan 11, 2009 at 9:05 PM, James Mills prolo...@shortcircuit.net.au wrote: On Mon, Jan 12, 2009 at 12:58 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Jan 11, 2009, at 8:59 PM, James Mills wrote: Hey all, The following fails for me: from urllib2 import urlopen f =