tsp-scraper
v1.2.0
Published
Scrapes TSP share prices from the TSP website.
Downloads
1
Readme
tsp-scraper
Scrapes the redesigned TSP share price history page.
Usage
Command line
npm install -g tsp-scraper
npx tsp-scraper
Module
const scraper = require('tsp-scraper');
const prices = await scraper.scrape(); // Returns current TSP share prices
Notes
- The website's HTML can't be scraped via a simple HTML request since the share price table appears to be dynamically generated
- A real user agent needs to be configured because the website doesn't seem to work with the default Playwright user agent