This lists the books of a Goodreads group's members, and sorts them by number of reads. Use it to search for the most read books in groups that are close to your interests.
You will need a free developer key from goodreads.com.
Needs python 3.x and goodreads bindings:
pip install goodreads
Reads | Year | Ratings | Book |
---|---|---|---|
238 | 1950 | 2167591 | 1984 - George Orwell |
211 | 1993 | 1480351 | The Alchemist - Paulo Coelho |
192 | 2003 | 12405 | Maitreyi - Mircea Eliade |
182 | 2004 | 2899284 | The Great Gatsby - F. Scott Fitzgerald |
181 | 2000 | 2272395 | Pride and Prejudice - Jane Austen |
... |
A complete result for a group with 3000 members is here: http://patraulea.com/goodreads/shelves_romania%20topbooks.html
-
Copy config-example.py to config.py and fill in the API key.
-
Get the group members:
listbooks.py users
. This saves them togroup-id-users.json
. -
Get the books:
listbooks.py books
. This savesgroup-id/user-id.json
for each user ingroup-id-users.json
. -
Sort by number of reads:
sort.py > output.html
.
There is a default of min_reads = 5
in sort.py so books with less reads don't show up in the output. You can change it as needed.