Goodreads Scraper
Try for free
3 days trial then $15.00/month - No credit card required now
View all Actors
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 mode
Node.js
Python
curl
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "search": "harry potter",
11 "startUrls": [
12 "https://www.goodreads.com/search?q=game+of+thrones&qid=",
13 "https://www.goodreads.com/book/show/59576065-acceptance",
14 "https://www.goodreads.com/list/show/1362.Best_History_Books_",
15 "https://www.goodreads.com/shelf/show/fiction",
16 "https://www.goodreads.com/genres/business",
17 "https://www.goodreads.com/author/list/1221698.Neil_Gaiman"
18 ],
19 "maxItems": 1,
20 "endPage": 1,
21 "extendOutputFunction": ($) => { return {} },
22 "customMapFunction": (object) => { return {...object} },
23 "proxy": {
24 "useApifyProxy": true,
25 "apifyProxyGroups": [
26 "RESIDENTIAL"
27 ]
28 }
29};
30
31(async () => {
32 // Run the Actor and wait for it to finish
33 const run = await client.actor("epctex/goodreads-scraper").call(input);
34
35 // Fetch and print Actor results from the run's dataset (if any)
36 console.log('Results from dataset');
37 const { items } = await client.dataset(run.defaultDatasetId).listItems();
38 items.forEach((item) => {
39 console.dir(item);
40 });
41})();
Developer
Maintained by Community
Actor metrics
- 10 monthly users
- 99.5% runs succeeded
- Created in Mar 2021
- Modified about 11 hours ago
Categories