Free eBook Scraper avatar
Free eBook Scraper
Try for free

No credit card required

View all Actors
Free eBook Scraper

Free eBook Scraper

Try for free

No credit card required

Explore and Download Free eBooks - Find and download a wide selection of free eBooks from Project Gutenberg. Search by keywords and language preferences. Discover literary gems in multiple formats.

Actor - Scraper Scraper is an Apify actor for extracting data of ebooks from It allows you to search for keywords and pick a language. It is build on top of Apify SDK and you can run it both on Apify platform and locally. Scraper Input Parameters

The input of this scraper should be JSON containing the list of pages on Gutenberg that should be visited. Possible fields are:

languageArray(optional) List of languages that Gutenberg provides. You can fetch all ebooks of a language with it
startUrlsArray(optional) List of Gutenberg URLs. You should provide ony "search" or "browse" URLs
maxItemsInteger(optional) Maximum number of items that output will contain
extendOutputFunctionstringFunction that takes a JQuery handle ($) as argument and returns data that will be merged with the default output. More information in Extend output function
proxyConfigObjectProxy configuration

This solution requires the use of Proxy servers, either your own proxy servers or you can use Apify Proxy.

Gutenberg Scraper Input example

2	"proxyConfig":{"useApifyProxy": true},
3	"startUrls":   [
4		{ "url": "" },
5    { "url": "" }
6	]

Gutenberg Ebook Output

The structure of each item in Gutenberg ebooks looks like this:

2  "author": "United States. National Park Service",
3  "title": "Cumberland Island: Junior Ranger Program Activity Guide for Ages 5-7",
4  "language": "English",
5  "htmlURL": "",
6  "epubURL": "",
7  "kindleURL": "",
8  "plainTextURL": ""

Extend output function

You can use this function to update the default output of this actor. This function gets a JQuery handle $ as an argument so you can choose what data from the page you want to scrape. The output from this will function will get merged with the default output.

The return value of this function has to be an object!

You can return fields to achive 3 different things:

  • Add a new field - Return object with a field that is not in the default output
  • Change a field - Return an existing field with a new value
  • Remove a field - Return an existing field with a value undefined

Compute Unit Consumption

The actor optimized to run blazing fast and scrape many product as possible. Therefore, it forefronts all product detail requests. If actor doesn't block very often it'll scrape ~250 products in 3 minutes with 0.0235 compute units.

During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified. When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with failure state and output an explanation of what is wrong.

Gutenberg Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any languague (Python, PHP, Node JS/NPM). See the FAQ or our API reference to learn more about getting results from this Gutenberg actor.


Please visit us through to see all the products that is available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in In need of support? is at your service.

Maintained by Community
Actor metrics
  • 7 monthly users
  • 0 stars
  • 97.2% runs succeeded
  • Created in Feb 2020
  • Modified about 21 hours ago