BUG URLLIB2

Martin v. Löwis martin at v.loewis.de
Fri Nov 15 12:07:45 EST 2002


"bart" <e_viola at libero.it> wrote in message
news:3DD43DA7.5070004 at libero.it...
> I'm an italian student and my problem consists about urllib2; urlopen
> function, sometimes, give me old (and inexactly) url because the site
> has moved in a new location but urlopen  doesn't undestand it and
return
> 403 error FORBIDDEN.

That's not a bug in urllib2; google.it is *really* returning 403
FORBIDDEN.
It appears that this google behaviour is triggered by the header

User-agent: Python-urllib/2.0a1

that urllib2 sends, which, in turn, suggests that Google explicitly bans
urllib2.
Complain to them.

Regards,
Martin




More information about the Python-list mailing list