# stock-market-scraper

> A simple scraper to get ticker info from Google Finance

Latest version **1.1.0** (published 2020-06-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install stock-market-scraper
pnpm add stock-market-scraper
yarn add stock-market-scraper
bun add stock-market-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 | 1.1.0 |
| Published | 2020-06-11 |
| First published | 2020-06-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | iCourt |
| Maintainers | officialcourt |
| Keywords | stocks, stockmarket, stockmarketscraper, scraper |

## Links

- npm: https://www.npmjs.com/package/stock-market-scraper
- Repository: https://github.com/icourt1/stock-market-scraper
- Homepage: https://github.com/icourt1/stock-market-scraper#readme
- Issues: https://github.com/icourt1/stock-market-scraper/issues
- npm.io page: https://npm.io/package/stock-market-scraper

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3

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

- 1.1.0 (latest) — 2020-06-11
- 1.0.1 — 2020-06-11
- 1.0.0 — 2020-06-11

## README

# Stock Market Scraper
A node package that allows you to scrape ticker info from Google Finance

# Installation

```shell
npm install stock-market-scraper
```

# Usage
### Using .then()
```js
const scrape = require('stock-market-scraper');

scrape('TICKR', [afterMarket]) // After market price is a boolean. Default: true
.then(info => console.log(info));

// Result:
// {
//  companyName: 'Some Company',
//  ticker: 'TICKR',
//  price: '0.00',
//  stats: {
//    open: '0.00',
//    high: '0.00',
//    low: '0.00',
//    cap: '0.00M',
//    ratio: '-',
//    yield: '-',
//    previousClose: '0.00',
//    yearhigh: '0.00',
//    yearlow: '0.00'
//  }
// }

```
### Using async/await

```js
const scrape = require('stock-market-scraper');

(async() => {
    const get = await scrape('TICKR', [afterMarket]); // After market price is a boolean. Default: true
    console.log(get);
})();

// Result:
// {
//  companyName: 'Some Company',
//  ticker: 'TICKR',
//  price: '0.00',
//  stats: {
//    open: '0.00',
//    high: '0.00',
//    low: '0.00',
//    cap: '0.00M',
//    ratio: '-',
//    yield: '-',
//    previousClose: '0.00',
//    yearhigh: '0.00',
//    yearlow: '0.00'
//  }
// }

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