All Projects → rixx → goodreads-to-sqlite

rixx / goodreads-to-sqlite

Licence: other
Export your (or other people's) Goodreads data to SQLite

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to goodreads-to-sqlite

healthkit-to-sqlite
Convert an Apple Healthkit export zip to a SQLite database
Stars: ✭ 130 (+109.68%)
Mutual labels:  datasette, dogsheep
dogsheep-photos
Upload your photos to S3 and import metadata about them into a SQLite database
Stars: ✭ 156 (+151.61%)
Mutual labels:  datasette, dogsheep
pocket-to-sqlite
Create a SQLite database containing data from your Pocket account
Stars: ✭ 56 (-9.68%)
Mutual labels:  datasette, dogsheep
google-takeout-to-sqlite
Save data from Google Takeout to a SQLite database
Stars: ✭ 73 (+17.74%)
Mutual labels:  datasette, dogsheep
datasette-cluster-map
Datasette plugin that shows a map for any data with latitude/longitude columns
Stars: ✭ 51 (-17.74%)
Mutual labels:  datasette
bookmarker
A personal project to help me retain information from books
Stars: ✭ 63 (+1.61%)
Mutual labels:  goodreads
Goodreads visualization
A Jupyter notebook where I play with my Goodreads data
Stars: ✭ 51 (-17.74%)
Mutual labels:  goodreads
goodreads-toolbox
9 tools for Goodreads.com, for finding people based on the books they’ve read, finding books popular among the people you follow, following new book reviews, etc
Stars: ✭ 56 (-9.68%)
Mutual labels:  goodreads
goodreads-sh
📙Command line interface for Goodreads.com. Written in Rust.
Stars: ✭ 27 (-56.45%)
Mutual labels:  goodreads
datasette-render-images
Datasette plugin that renders binary blob images using data-uris
Stars: ✭ 14 (-77.42%)
Mutual labels:  datasette
goodrexport
Goodreads data export
Stars: ✭ 16 (-74.19%)
Mutual labels:  goodreads
Nietzsche
Scrap quotes from Goodreads and schedule random tweets.
Stars: ✭ 44 (-29.03%)
Mutual labels:  goodreads
computer book list
一个综合了豆瓣,goodreads综合评分的计算机书籍书单
Stars: ✭ 1,535 (+2375.81%)
Mutual labels:  goodreads
museums
A website recommending niche museums to visit
Stars: ✭ 30 (-51.61%)
Mutual labels:  datasette
BooksAndBot
Telegram inline bot. Search for books and share them in a conversation
Stars: ✭ 26 (-58.06%)
Mutual labels:  goodreads
ReaDB
ReaDB is your private digital bookshelf. Read. Review. Remember.
Stars: ✭ 84 (+35.48%)
Mutual labels:  goodreads
evernote-to-sqlite
Tools for converting Evernote content to SQLite
Stars: ✭ 28 (-54.84%)
Mutual labels:  dogsheep
GoodReadsScraper
📚 A GoodReads.com Scraper script to get books reviews including text and rating.
Stars: ✭ 36 (-41.94%)
Mutual labels:  goodreads
software-architecture-books
A comprehensive list of books on Software Architecture.
Stars: ✭ 7,397 (+11830.65%)
Mutual labels:  goodreads
datasette-dashboards
Datasette plugin providing data dashboards from metadata
Stars: ✭ 65 (+4.84%)
Mutual labels:  datasette

goodreads-to-sqlite

PyPI License

Save data from Goodreads to a SQLite database. Can save all your public shelves and reviews, and also the public reviews and shelves of other people.

Demo

How to install

$ pip install goodreads-to-sqlite

Add the -U flag to update. Change notes can be found in the CHANGELOG file, next to this README.

Authentication

Create a Goodreads developer token: https://www.goodreads.com/api/keys

Run this command and paste in your token and your profile URL:

$ goodreads-to-sqlite auth

This will create a file called auth.json in your current directory containing the required value. To save the file at a different path or filename, use the --auth=myauth.json option.

Retrieving books

The books command retrieves all of the books and reviews/ratings belonging to you:

$ goodreads-to-sqlite books goodreads.db

Note that your Goodreads profile must be public in order for this to work - if it is not already, you can enable this by visiting https://www.goodreads.com/user/edit?ref=nav_profile_settings and selecting "anyone (including search engines)" within the "Settings" tab.

You can also specify the user to target, to fetch books on public shelves of other users. Please provide either the user ID (the numerical part of a user's profile URL), or the name of their vanity URL.

$ goodreads-to-sqlite books goodreads.db rixx

Sometime in 2018 or 2017, Goodreads started leaving out some "read_at" timestamps in their API. If you want to include these datapoints regardless, you can add the --scrape parameter, and the dates will be scraped from the website. This will take a bit longer, by maybe a minute depending on the size of your library.

$ goodreads-to-sqlite books goodreads.db --scrape

The auth.json file is used by default for authentication. You can point to a different location of auth.json using -a:

$ goodreads-to-sqlite books goodreads.db rixx -a /path/to/auth.json

Limitations

  • The order of books in shelves is not exposed in the API, so we cannot determine the order of the to-read list.
  • Goodreads also offers a CSV export, which is currently not supported as an input format.
  • Since the Goodreads API is a bit slow, and we are restricted to one request per second, for larger libraries the import can take a couple of minutes.
  • The script currently re-syncs the entire library instead of just looking at newly changed data, to make sure we don't lose information after aborted syncs.

Thanks

This package is heavily inspired by github-to-sqlite by Simon Willison.

The terminal recording above was made with ASCIInema.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].