Stock Market Scraper
A node package that allows you to scrape ticker info from Google Finance
Installation
npm install stock-market-scraper
Usage
Using .then()
const scrape = ; // After market price is a boolean. Default: true; // 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
const scrape = ; async const get = await ; // After market price is a boolean. Default: true console;; // 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'// }// }