urlopen returns forbidden

Chris Rebert clp2 at rebertia.com
Mon Feb 28 21:48:28 CET 2011


On Mon, Feb 28, 2011 at 9:44 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 2/28/2011 10:21 AM, Grant Edwards wrote:
>> As somebody else has already said, if the site provides an API that
>> they want you to use you should do so rather than hammering their web
>> server with a screen-scraper.
>
> If there any generic method for finding out 'if the site provides an API"
> and specifically, how to find Wikipedia's?
>
> I looked as the Wikipedia articles on API and web services and did not find
> any mention of thiers (though there is one for Amazon).

Technically it's Wikipedia's underlying wiki software (MediaWiki)'s API:
http://www.mediawiki.org/wiki/API

Cheers,
Chris



More information about the Python-list mailing list