Giter Club home page Giter Club logo

gutenberg-bulk-downloader's Introduction

GUTENBERG-BULK-DOWNLOADER

Bulk downloader for free ebooks hosted at Project Gutenberg.

Project Gutenberg has a sort of webservice; the protocol is explained here.

Follow the steps in order to create a local development copy in a Linux/Mac OS machine.

  1. Create a project folder in your workspace

$ mkdir gutenberg-bulk-downloader
$ cd gutenberg-bulk-downloader

We will refer to this folder as repository root.

  1. Clone the reposiotry

$ git clone https://github.com/nimiq/gutenberg-bulk-downloader.git .
  1. Create a virtual environment

You can create virtual environments using Virtualenvwrapper or Virtualenv. I usually use Virtualenvwrapper in development and Virtualenv in production.

3.1. Using Virtualenvwrapper

$ mkvirtualenv gutenberg-bulk-downloader

3.2. Using plain Virtualenv

$ virtualenv ve
  1. Install the requirements

$ pip install -r requirements.txt
  1. Run a download session

$ python manage.py --f pdf --lang en --n 100

Appendix A. Command line parameters

$ python manage.py --help
usage: manage.py [-h]
                 [--file-type {txt,pdf,html,epub.images,epub.noimages,kindle.images,kindle.noimages,mp3}]
                 [--lang LANG] [--n-ebooks N_EBOOKS]

Downloads free ebooks from Project Gutenberg.

optional arguments:
  -h, --help            show this help message and exit
  --file-type {txt,pdf,html,epub.images,epub.noimages,kindle.images,kindle.noimages,mp3}
                        Filter by file types.
  --lang LANG           Ebook language.
  --n-ebooks N_EBOOKS   Number of ebooks to download (default: 100).

E.g. download .txt and .pdf files, English and German language, max 500 files:

$ python manage.py --file-type pdf --file-type txt --lang en --lang de --n-ebooks 500

gutenberg-bulk-downloader's People

Contributors

adamgleave avatar puntonim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.