Skip to main content

Find books at your local library

Project description

Build Status Code Coverage Code style: black

Bibliophile backend

This is a Python-based tool for finding books at the local library.

It parses your "to read" list from Goodreads.com and checks which items are available at a library of your choosing.

Looking for a GUI?

This repository is all you need to use the tool locally via the command line. For a web-based user interface, see Bibliophile.

Can I use this?

If you live near one of the ~190 public libraries using the BiblioCommons system, then running this software should work for you. It relies on undocumented APIs, so your mileage may vary.

  1. Apply for a Goodreads Developer Key.

  2. Obtain your Goodreads user id

  3. [Optional] Set both these values in your .bashrc

    export GOODREADS_USER_ID=123456789
    export GOODREADS_DEV_KEY=whatever-your-actual-key-is
    
  4. Install Poetry

  5. Run the script!

    make  # One-time setup of dependencies
    ./lookup.py --biblio seattle  # Set to your own city!
    

Make sure you adhere to the terms of Goodreads' API, and have fun.

Other options

You can choose to show only titles available at your local branch, select titles from another Goodreads shelf, etc. Pass --help to see all options:

usage: lookup.py [-h] [--branch BRANCH] [--shelf SHELF] [--biblio BIBLIO]
                 [--csv CSV]
                 [user_id] [dev_key]

See which books you want to read are available at your local library.

positional arguments:
  user_id          User's ID on Goodreads
  dev_key          Goodreads developer key. See https://www.goodreads.com/api

optional arguments:
  -h, --help       show this help message and exit
  --branch BRANCH  Only show titles available at this branch. e.g. 'Fremont
                   Branch'
  --shelf SHELF    Name of the shelf containing desired books
  --biblio BIBLIO  subdomain of bibliocommons.com (seattle, vpl, etc.)
  --csv CSV        Output results to a CSV of this name.

Cloud-based deployment

This may also be deployed as Lambda functions in AWS. See the Bibliophile README for instructions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bibliophile-1.0.0.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

bibliophile-1.0.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file bibliophile-1.0.0.tar.gz.

File metadata

  • Download URL: bibliophile-1.0.0.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.6.11 Darwin/19.6.0

File hashes

Hashes for bibliophile-1.0.0.tar.gz
Algorithm Hash digest
SHA256 527d604791ea6f149fc263efaf4751ae7ee43039cffc44e3d187c3689256fd7c
MD5 09173c66785f34927f7e3b3b21648062
BLAKE2b-256 b80688ee1cde5c048305b64521b0baf8f1e824b5b19bf0cd03fa5bb1cd745e8a

See more details on using hashes here.

File details

Details for the file bibliophile-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bibliophile-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.6.11 Darwin/19.6.0

File hashes

Hashes for bibliophile-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 713dcbfc98ef54f8e856e9ac38c965257f9cae097993530cc3f2d38ea5adc62e
MD5 f1f1826e52b64993983abc3a38bd0078
BLAKE2b-256 3633dce173ec443c92720087c935948c662b98a697ff6bf94b9be4c7c1d8f54b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page