3.1.0 • Published 6 years ago

history-scraper v3.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

History Scraper (JS)

npm version Code Climate License: MIT

About

Scraper that searches for events, births and deaths that occurred during a specific day of history from Wikipedia.

You may check out the ruby gem version here.

Usage

  1. Run npm i history-scraper or yarn add history-scraper

  2. Add this to your code:

    const scraper = require('history-scraper');
    
    scraper(optionsJson)
      .then(json => console.log(json))
      .catch(err => console.error(err));
  3. Run your code.

optionsJson may have the following key/values:

keydescriptionexample valuedefault value
delayms delay between successive requests20050
outputDirname of the file to write the resultsdata.jsonnone (no file will be written)
loggingwhether to show the algorithm's progress or nottruefalse

example options:

{ delay: 50, outputDir: 'data.json', logging: true }

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
3.1.0

6 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago