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.
-
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.
- 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