2.0.3 • Published 7 years ago
on-this-day-scraper v2.0.3
On This Day Scraper (JS)
About
On This Day is a scraper that searches events, births and deaths that occurred in a specific day from Wikipedia.
You may check out the ruby gem version here.
Usage
Run
npm i on-this-day-scraper
oryarn add on-this-day-scraper
Add this to your code:
const scraper = require('on-this-day-scraper'); scraper('outputFileName.json', msDelayBetweenRequests) .then(json => console.log(json)) .catch(err => console.error(err));
If not specified, by default the output file name will be
data.json
, and the delay between successive requests will be 50ms.
Contributing
- Fork this repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'add my feature'
) - Push to your feature branch (
git push origin my-new-feature
) - Create a new Pull Request