
I'm puzzled. I think PG is an organization about making it as easy as possible to download free ebooks. What problem is being addressed by making it more restrictive and difficult? Why are we breaking existing software interfaces? Wouldn't OLPC be about as close as one could get to an ideal PG consumer? On Sun, Feb 10, 2013 at 4:11 PM, James Simmons <nicestep@gmail.com> wrote:
Marcello (and everyone else who replied):
It looks like the mirrors have the same policy. I'm currently using this to download from the URL:
http://doc.sugarlabs.org/epydocs/sugar.network.GlibURLDownloader-class.html
I'm not seeing a way to put a user agent in using this code. It looks like urllib2 supports it. I used the other because I was already using it for collaboration and it gives me a way to do a progress report on the download. I appreciate everyone's detective work and suggestions.
James Simmons
On Sun, Feb 10, 2013 at 1:22 PM, Marcello Perathoner < marcello@perathoner.de> wrote:
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<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<http://www.olpc-reader.org/app-info.html>
OLPCReader/1.0; +mailto:me@example.com
The standard Python-urllib user agent will not do!
or
use a mirror site. See: www.gutenberg.org/MIRRORS.ALL
Regards
-- Marcello Perathoner webmaster@gutenberg.org
_______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/mailman/listinfo/gutvol-d