Re: Problems downloading PG titles without a web browser

Marcello Perathoner <marcello-ULrl/Sucve/[email protected]> Sun, 10 Feb 2013 20:22:12 +0100
Newsgroups gmane.culture.literature.e-books.gutenberg.volunteers,gmane.comp.education.sugar.devel
Message-ID <[email protected]>
On 02/10/2013 06:46 PM, James Simmons wrote:
> I had created an Activity for the One Laptop Per Child project which
> downloads and reads the Plain Text version of PG titles.  I use the offline
> catalogue and some Python code to list available titles in the catalogue
> that match a search string.  For instance the child might enter "Twain" and
> get a list of all the books by and about Twain.  Then the child can
> download the book using the same program.
>
> This has been working well for years but lately it has stopped working.
> When I try to debug it I see it trying to download this URL for instance:
>
> http://www.gutenberg.org/dirs/1/1/119/119.zip


Supply a user-agent that clearly defines your app and provides a way to 
contact you eg.

   OLPCReader/1.0; +http://www.olpc-reader.org/app-info.html

   OLPCReader/1.0; +mailto:[email protected]

The standard Python-urllib user agent will not do!


or


use a mirror site. See: www.gutenberg.org/MIRRORS.ALL





Regards

-- 
Marcello Perathoner
[email protected]
_______________________________________________
gutvol-d mailing list
gutvol-d-4LCm/o+qPMZ96Xl/[email protected]
http://lists.pglaf.org/mailman/listinfo/gutvol-d