# history-scraper

> Scraps events, births and deaths that occured during any day of history.

Latest version **3.1.0** (published 2018-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install history-scraper
pnpm add history-scraper
yarn add history-scraper
bun add history-scraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2018-01-11 |
| First published | 2017-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sebastián Salata Ruiz-Tagle |
| Maintainers | sasalatart |
| Keywords | scraper, wikipedia, history |

## Links

- npm: https://www.npmjs.com/package/history-scraper
- Repository: https://github.com/sasalatart/history-scraper-js
- Homepage: https://github.com/sasalatart/history-scraper-js#readme
- Issues: https://github.com/sasalatart/history-scraper-js/issues
- npm.io page: https://npm.io/package/history-scraper

## Dependencies (5)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.1
- [request](https://npm.io/package/request.md) ^2.81.0
- [jsonfile](https://npm.io/package/jsonfile.md) ^3.0.0
- [progress](https://npm.io/package/progress.md) ^2.0.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2018-01-11
- 3.0.2 — 2017-06-18
- 3.0.1 — 2017-06-18
- 3.0.0 — 2017-06-18

## README

# History Scraper (JS)

[![npm version](https://badge.fury.io/js/history-scraper.svg)](https://badge.fury.io/js/history-scraper)
[![Code Climate](https://codeclimate.com/github/sasalatart/history-scraper-js/badges/gpa.svg)](https://codeclimate.com/github/sasalatart/history-scraper-js)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/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](https://github.com/sasalatart/history-scraper-rb).

## Usage

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

2. Add this to your code:

  ```js
  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:

| key       | description                                     | example value | default value                  |
|-----------|-------------------------------------------------|---------------|--------------------------------|
| delay     | ms delay between successive requests            | 200           | 50                             |
| outputDir | name of the file to write the results           | data.json     | none (no file will be written) |
| logging   | whether to show the algorithm's progress or not | true          | false                          |

  example options:
  ```js
  { 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

---
_Source: https://npm.io/package/history-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
