Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/entrptaher/scraper-class
- Owner: entrptaher
- License: mit
- Created: 2018-06-09T21:54:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-18T18:36:27.000Z (over 6 years ago)
- Last Synced: 2024-10-30T17:53:52.561Z (20 days ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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();
```