This package has been deprecated

Author message:

<=2.0.3

on-this-day-scraper

2.0.3 • Public • Published

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

Package Sidebar

Install

npm i on-this-day-scraper

Weekly Downloads

0

Version

2.0.3

License

MIT

Last publish

Collaborators

  • sasalatart