Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

c-w/gutenberg-http

Repository files navigation

Gutenberg-HTTP

image

image

Overview

This project is an HTTP wrapper for the Python Gutenberg API. As such, it lets you search for books, retrieve information about books and get the text of books via a set of easy-to-use HTTP endpoints.

The API is implemented using the Flask web-framework and served in a Docker container. You can run the project locally using:

This will serve the API at http://localhost:8000. It will take a while to bring up the service the first time since the Gutenberg metadata cache needs to get populated.

To refresh the Gutenberg metadata cache and reload the service after the initial server start, you can run:

Endpoints

Fetch all metadata for a book

Fetch specific metadata for a book

Fetch the text of a book

Simple search for books

Conjunctive query for books