Goodreads Scraper avatar
Goodreads Scraper
Try for free

3 days trial then $15.00/month - No credit card required now

View all Actors
Goodreads Scraper

Goodreads Scraper

epctex/goodreads-scraper
Try for free

3 days trial then $15.00/month - No credit card required now

Scrape goodreads.com for data on millions of books. Crawl book details for images, ISBN, author, description, title, buy links, number of reviews, page number, language, and all other details. You can specify search terms, filters, and much more.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "search": "harry potter",
9    "startUrls": [
10        "https://www.goodreads.com/search?q=game+of+thrones&qid=",
11        "https://www.goodreads.com/book/show/59576065-acceptance",
12        "https://www.goodreads.com/list/show/1362.Best_History_Books_",
13        "https://www.goodreads.com/shelf/show/fiction",
14        "https://www.goodreads.com/genres/business",
15        "https://www.goodreads.com/author/list/1221698.Neil_Gaiman",
16    ],
17    "maxItems": 1,
18    "endPage": 1,
19    "extendOutputFunction": "($) => { return {} }",
20    "customMapFunction": "(object) => { return {...object} }",
21    "proxy": {
22        "useApifyProxy": True,
23        "apifyProxyGroups": ["RESIDENTIAL"],
24    },
25}
26
27# Run the Actor and wait for it to finish
28run = client.actor("epctex/goodreads-scraper").call(run_input=run_input)
29
30# Fetch and print Actor results from the run's dataset (if there are any)
31print("๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33    print(item)
34
35# ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
  • 19 monthly users
  • 100.0% runs succeeded
  • 0.0 days response time
  • Created in Mar 2021
  • Modified 41 minutes ago