GithubHelp home page GithubHelp logo

kyleking / goodreads_library_availability Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 382 KB

Check for availability of books from Goodreads Lists

License: MIT License

Python 74.86% HTML 7.26% JavaScript 16.19% CSS 1.69%
calcipy

goodreads_library_availability's Introduction

Goodreads Library Availability

Note

I am archiving this project because I don't read books fast enough to require batch comparison of my reading list to available books... I have also migrated from Goodreads to StoryGraph and moved to a different public library, so this specific implementation is less useful

Check book availability at a local Public Library

  1. The app queries the Goodreads API for the authorized user's To-Read shelf, creating a CSV file
  2. The app then checks each book for availability in the Public library digital catalog, creating a JSONL file
  3. The resulting JSONL file can then be viewed in a web browser to see which books are available:

Web App Screenshot

(Note: still in progress on improving the filtering of library matches and HTML parsing)

Initially I wanted to use the Overdrive API, but they don't provide access for personal projects. This tool could likely be generalized for other public libraries with minor modifications to gr_lib_sync.moco.searchLib() and with a custom base url similar to gr_lib_sync.moco.mocoUrl

Quick Start

If you have Python ^3.6 and the required packages from poetry.toml (rauth, beautifulsoup4, etc.). You can run this app with python main.py

The more reliable way is to install Poetry (https://github.com/sdispater/poetry). Then run poetry install and poetry run python main.py.

Testing

With poetry installed, run poetry shell then pytest (or pytest -l -x, etc.).

Improvements

  • Add direct link to the book in the public library
  • Limit fields with "None" value
  • Improve filtering matches

goodreads_library_availability's People

Contributors

kyleking avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

goodreads_library_availability's Issues

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.