Description
scrape-it is a Node.js scraping library, which its author describes as a scraper for humans. It requests a page and parses the HTML into an object that you define, and its scrapeHTML method parses HTML you already have, including local files read with fs. The README explains how to handle AJAX pages. If the response is JSON, call the endpoint directly. If it returns HTML, point scrape-it at the AJAX URL. If the request is too complicated to reverse-engineer, use a headless browser to load the content and then pass the HTML to scrapeHTML. The library has no built-in crawler. For simple crawls, you parse a list of URLs and fetch each page with Promises, or download the site with another crawler and scrape the saved files. A command-line version, scrape-it-cli, can be installed globally with npm.…
Highlights
- Parse pages into objects you define
- scrapeHTML for local files
- Command-line version available
- FAQ on AJAX pages and crawling
Ratings & Reviews
No ratings yet
Be the first to rate Scrape It.
People also visit
Scrape It FAQ
What is scrape-it?
A Node.js scraping library, which the author describes as a scraper for humans.
Can it parse JavaScript-heavy pages?
Not directly. The README suggests calling the JSON endpoint, or using a headless browser for complicated cases, and then calling scrapeHTML.
Does it crawl websites?
There is no built-in crawler. You can fetch a list of URLs and parse each one, or use another crawler and scrape the saved files.
Can I scrape local files?
Yes. scrapeHTML parses HTML read from files, for example with fs.readFile.
Is there a command-line version?
Yes, scrape-it-cli, which can be installed globally with npm.
What are the best Scrape It alternatives?
Popular alternatives to Scrape It include PHPScraper, Stealth-Requests and Web Scraping. See all Scrape It alternatives





