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-scraperUsage
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);
...
}