pupget
Version:
A simple webscrapping package to extract data from a DSL
38 lines (23 loc) • 776 B
Markdown
Pupget is a Node library for scraping the Web based on a DSL definition.
Use the package manager [npm](https://www.npmjs.com/) to install pupget.
```bash
npm install pupget
```
```javascript
const pupget = require("pupget");
// Load default DSL
const filename = require.resolve("pupget/pupget.json");
pupget.readFromFile(filename);
// Load DSL as string
pupget.readFrominnerJson("{...}");
// Scraping (if DSL created from scratch)
pupget.scrape();
```
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
[](https://choosealicense.com/licenses/mit/)