UNPKG

js-harvester

Version:

Harvester is a lightweight and highly optimized javascript library for extracting data from the DOM tree. It supports extraction of tag texts with specified types and attributes. it's tiny and has no dependencies and also works with Puppeteer

27 lines (20 loc) 768 B
# Harvester examples 🚜 This project contains a collection of examples using the Harvester library in [Puppeteer](https://pptr.dev) code. # Table of contents - [Examples folder](#examples-folder) - [Installation](#examples-installation) - [Running](#running-examples) ## Examples folder This project contains few [examples](https://github.com/tmptrash/harvester/tree/main/examples) of usage the harvester with Puppeteer, Playwright and Node.js. You may run three examples: `news.js`, `rozetka.js` and `amazon.js`. ### Installation If Node.js is not installed on your computer, install it from this [link](https://nodejs.org/en/download). ```bash cd examples npm i ``` ### Running ```bash cd examples node src/puppeteer/rozetka node src/playwright/news ```