@moises-herrera/stock-market-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Stock Market Web Scraper

Reusable stock web scraper to get the information about the price of an asset from es.investing.com

Install

npm install @moises-herrera/stock-market-scraper

Example

import stockMarketScraper from '@moises-herrera/stock-market-scraper';

async function bootstrap() {
  try {
    const eurUsdPrice = await stockMarketScraper.getPrice(
      'currencies', 
      'eur/usd' // Using a valid pair from es.investing.com
    );
  } catch (error) {
    console.error(error);
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @moises-herrera/stock-market-scraper

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

15.2 kB

Total Files

11

Last publish

Collaborators

  • moises-herrera