get wikipedia source failed (urrlib2)

Lawrence Oluyede raims at dot.com
Tue Aug 7 11:53:18 CEST 2007


<shahargs at gmail.com> wrote:
> This source works fine for other site. the problem is in wikipedia. is
> someone now any solution for this problem?

Wikipedia, AFAIK, bans requests without a User Agent.
http://www.voidspace.org.uk/python/articles/urllib2.shtml#headers

-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand 
something when his salary depends on not
understanding it" - Upton Sinclair



More information about the Python-list mailing list