JSPM

finance-scraper

0.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q28566F

    uses yahoo finance to scrape stock metrics

    Package Exports

    • finance-scraper

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (finance-scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Introduction

    finance-scraper is a scraper written to pull ticker and profile data from Yahoo Finance.

    Both callback and promise(Bluebird) styles are supported

    Metrics

    • Market Cap
    • Volume
    • Average Volume
    • Dividend
    • Beta
    • PE Ratio
    • PEG Ratio
    • PSE
    • ROA
    • ROE
    • Next Earning Date

    Profile

    • Description

    Installation

    npm install finance-scraper

    Usage

    Ticker Data

    var financeScraper = require('finance-scraper');
    
    financeScraper.getTickerData('AAPL')
        .then(onGet);
    
    function onGet(data) {
        console.log('Beta: ', data.beta);
        console.log('Market Cap: ', data.marketCap);
        ...
    }

    Profile Data

    var financeScraper = require('finance-scraper');
    
    financeScraper.getProfileData('AAPL')
        .then(onGet);
    
    function onGet(data) {
        console.log('Description: ', data.description);
        ...
    }