Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/entrptaher/scraper-class

Exports a page controller that can be used to control a chrome page instance created by puppeteer.
https://github.com/entrptaher/scraper-class

Last synced: about 6 hours ago
JSON representation

Exports a page controller that can be used to control a chrome page instance created by puppeteer.

Awesome Lists containing this project

README

        

This exports a page controller that can be used to control a chrome page instance created by puppeteer.

Example usage:

```js
const scraper = new Scraper({headless: false, url: 'example.com', proxy: '127.0.0.1:8888', cookies: 'somecookie=bar'});
await scraper.navigate('example.org');
await scraper.type(selector, value);
await scraper.click(selector, visible);
await scraper.select(selector, value);
await scraper.getText(selector);
await scraper.closeBrowser();
```