2.0.3 • Published 7 years ago

on-this-day-scraper v2.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

On This Day Scraper (JS)

npm version Code Climate License: MIT

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

  1. Run npm i on-this-day-scraper or yarn add on-this-day-scraper

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

  1. Fork this repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'add my feature')
  4. Push to your feature branch (git push origin my-new-feature)
  5. Create a new Pull Request