November 2024
    M T W T F S S
     123
    45678910
    11121314151617
    18192021222324
    252627282930  

    Hello all,

    *(Message to the mods: this is a Meta post, please contact me if something is wrong!)*

    # The goodreads-bot Legacy

    As you must know if you were already here last year, our beloved bot u/goodreadsbot stopped working in January after having been used **156.631** times on this subreddit by a total of **25.272** different users, because goodreads shut down API access.

    As a bored nerd and fellow reader, I decided to start a new toy project: rise our bot back! But because the Goodreads API is now closed, the first task was to build my own Books database… which I did, using Reddit, Goodreads & Google Books.

    This new bot called u/goodreads-rebot (“bot” + “reboot” = “rebot”…..) is open source (link to source code below). I wanted to thank u/ArtyomR, the author of u/goodreadsbot, for the original idea. I am not u/ArtyomR, but I have great respect for his/her work and its legacy. Thank you!

    # How does it work? Just like before! (with more features)

    Write `{{Harry Potter}} in your post` or alternatively `{{A Little Life by Hanya Yaniagara}} (notice the typo)` with a **”by”** and the bot will answer with more information about the **book** or the **series**.

    The search part is now part of the bot (and not on Goodreads API side), and was quite challenging to handle. **You definitely should specify the author with the “by” keyword**, because it helps the Database search.

    **Examples:**

    `You should read {{Harry Potter}} !` will work, it will recognize it as the name of a **Series**, in that case it will provide information about **the first book of the Series;**

    `My favorite book is {{Call Me By Your Name}}` will work too, the bot will try to find a book called **Call Me** by author named **Your Name** (because of the “by” keyword…) but it will fail to find one, so as a 2nd try because it’s not *that* dumb, it will indeed find a book called **Call Me By Your Name** 🙂

    `Did you read {{1984 by Michael Radford}}?` (notice the wrong author): it will work too even if the author is wrong, because when the search fails using the author, it will try again ignoring it.

    # Features

    I added a “Top 2 recommended-along” section, featuring the 2 books that were the most recommended here on Reddit in the same threads than the book described. It is based on another toy project of mine (😅), a book recommending algorithm I am working on, which is based on the co-occurences of book titles in Reddit threads. Let me know if you find this new information useful.

    # Limitations

    As explained before, the bot is based on a book database I build and update as much as I can. The search will sometimes fail to match some existing books, in particular very niche books, or the recent ones. I am working on having the best and up-to-date database as possible, meanwhile sorry for the misses!

    Also, the bot is currently not running on other subreddits (like r/booksuggestions), but because the code is really modular, it’s just about configurations. FYI this is in the roadmap for the next few days/weeks.

    Finally, I may reach some rate posting limits because of low karma. Hopefully, this will be solved soon after some time thanks to your help 🙂

    You will find below more information (links being forbidden in posts).

    I think that’s it.

    See you there!

    by goodreads-rebot

    4 Comments

    1. goodreads-rebot on

      👇 Here is what answers look like:

      #1/3: **[Harry Potter and the Sorcerer’s Stone (Harry Potter #1)](https://www.goodreads.com/book/show/3.Harry_Potter_and_the_Sorcerer_s_Stone) by J.K. Rowling** ^((Matching 100% ☑️))

      ^(309 pages | Published: 1997 | Suggested 14 times)

      > **Summary:** Harry Potter’s life is miserable. His parents are dead and he’s stuck with his heartless relatives. who force him to live in a tiny closet under the stairs. But his fortune changes when he receives a letter that tells him the truth about himself: he’s a wizard. A mysterious visitor rescues him from his relatives and takes him to his new home. Hogwarts School of Witchcraft and Wizardry. After a lifetime of bottling up his magical powers. Harry finally feels like a normal kid. (…)

      > **Themes**: Fantasy, Fiction, Young-adult, Harry-potter, Books-i-own

      > **Top 2 recommended-along**: [The Casual Vacancy – Perebutan Kursi Kosong](https://www.goodreads.com/book/show/16173852-the-casual-vacancy—perebutan-kursi-kosong) by J.K. Rowling, [The Hunger Games Series](https://www.goodreads.com/book/show/2767052-the-hunger-games) by Suzanne Collins

      #2/3: **[Call Me By Your Name (Call Me By Your Name #1)](https://www.goodreads.com/book/show/36336078-call-me-by-your-name) by André Aciman** ^((Matching 100% ☑️))

      ^(248 pages | Published: 2007 | Suggested 77 times)

      > **Summary:** Call Me by Your Name is the story of a sudden and powerful romance that blossoms between an adolescent boy and a summer guest at his parents’ cliff-side mansion on the Italian Riviera. Unprepared for the consequences of their attraction. at first each feigns indifference. But during the restless summer weeks that follow. unrelenting buried currents of obsession and fear. fascination and desire. intensify their passion as they test the charged ground between them. What grows (…)

      > **Themes**: Fiction, Romance, Lgbt, Lgbtq, Contemporary

      > **Top 2 recommended-along**: [The Wings of the Dove](https://www.goodreads.com/book/show/124272.The_Wings_of_the_Dove) by Henry James, [Find Me (Call Me By Your Name, #2)](https://www.goodreads.com/book/show/44581535-find-me) by André Aciman

      #3/3: **[1984](https://www.goodreads.com/book/show/40961427-1984) by George Orwell** ^((Matching 100% ☑️))

      ^(298 pages | Published: 1949 | Suggested 221 times)

      > **Summary:** Among the seminal texts of the 20th century. Nineteen Eighty-Four is a rare work that grows more haunting as its futuristic purgatory becomes more real. Published in 1949. the book offers political satirist George Orwell’s nightmarish vision of a totalitarian. bureaucratic world and one poor stiff’s attempt to find individuality. The brilliance of the novel is Orwell’s prescience of modern life—the ubiquity of television. the distortion of the language—and his ability to (…)

      > **Themes**: Classics, Fiction, Science-fiction, Dystopia, Dystopian

      > **Top 2 recommended-along**: [Brave New World](https://www.goodreads.com/book/show/5129.Brave_New_World) by Aldous Huxley, [Animal Farm](https://www.goodreads.com/book/show/170448.Animal_Farm) by George Orwell

      ^( [Provide Feedback](https://docs.google.com/forms/d/e/1FAIpQLSctJFIlf7XR_3y0ZOELiDFYufSKJBKlxE9hUFXz4CGIwBXAQQ/viewform?usp=pp_url) | [Source Code](https://github.com/sonoff2/goodreads-rebot) )

    Leave A Reply