Re: urllib2 - 403 that _should_ not occur.

2009-01-14 Thread Steve Holden
ajaksu wrote: > On Jan 14, 5:14 am, Steve Holden 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 do

Re: urllib2 - 403 that _should_ not occur.

2009-01-14 Thread ajaksu
On Jan 14, 5:14 am, Steve Holden 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 mean it > would

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Steve Holden
ajaksu wrote: > On Jan 13, 1:33 am, Philip Semanchuk 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 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'

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread ajaksu
On Jan 13, 1:33 am, Philip Semanchuk 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 website': evangelism. IMH

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread Falcolas
On Jan 11, 6: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";) For what it's worth, I've had a similar problem with the urlopen as well. Us

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" wrote: > Hey all, > > The following fails for me: > from urllib2

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" wrote: Hey all, The following fails for me: from urllib2 import urlopen f = urlopen("http://groups.google.com/group/chromium-announce/f

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" >> wrote: >>> Hey all, >>> >>> The following fails for me: >>> >> from urllib2 import urlopen >> f = >> urlopen("http://groups.google.com/group/chromium-announce/feed/rss_v2

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" 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 he

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread ajaksu
On Jan 11, 11: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): [...] > Any helpful ideas ? Maybe ra

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 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 >>> strict. >> >> If you look at the

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 ge

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread Chris Mellon
On Sun, Jan 11, 2009 at 9:05 PM, James Mills wrote: > On Mon, Jan 12, 2009 at 12:58 PM, Philip Semanchuk > 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://gro

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread James Mills
On Mon, Jan 12, 2009 at 1:25 PM, Philip Semanchuk 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 with > a distinct

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 > 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/

Re: urllib2 - 403 that _should_ not occur.

2009-01-11 Thread James Mills
On Mon, Jan 12, 2009 at 12:58 PM, Philip Semanchuk 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 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 "", line 1, in File "/usr/lib/python2.6/urllib

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 "", line 1, in File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen return _