Collecting and cleaning data
There are two ways in which to get data from Goodreads: through its Application Programming Interface (API), which allows developers to programmatically access data about books, and through its manual exporting function. Sadly, Goodreads is deprecating its API in the near future and, as of December 2020, does not give access to new developers.
The original Goodreads app uses the API, but our version will rely on the manual exporting function that the Goodreads website has instead. To get your data, head over to https://www.goodreads.com/review/import and download your own data. If you do not have a Goodreads account, feel free to use my personal data for this, which can be found at https://github.com/tylerjrichards/goodreads_book_demo. I have saved my Goodreads data in a file, called goodreads_history.csv
, in a new folder, called streamlit_goodreads_book
. To make your own folder with the appropriate setup, run the following in your terminal:
mkdir...