Skip to content

ChillarAnand/Gutenberg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gutenberg

Overview

This package contains a variety of scripts to make working with the Project Gutenberg body of public domain texts easier.

The functionality provided by this package includes:

  • Downloading texts from Project Gutenberg.
  • Cleaning the texts: removing all the crud, leaving just the text behind.
  • Making meta-data about the texts easily accessible.

Installation

This project is on PyPI, so I'd recommend that you just install everything from there using your favourite Python package manager.

If you want to install from source or modify the package, you'll need to clone this repository:

Now, you should probably install the dependencies for the package and verify your checkout by running the tests.

Usage

Downloading a text

Looking up meta-data

Note: The first time that one of the functions from gutenberg.query is called, the library will create a rather large database of meta-data about the Project Gutenberg texts. This one-off process will take quite a while to complete (18 hours on my machine) but once it is done, any subsequent calls to get_etexts or get_metadata will be very fast.

Limitations

This project deliberately does not include any natural language processing functionality. Consuming and processing the text is the responsibility of the client; this library merely focuses on offering a simple and easy to use interface to the works in the Project Gutenberg corpus. Any linguistic processing can easily be done client-side e.g. using the TextBlob library.

About

A simple interface to the Project Gutenberg corpus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%