New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

tsp-scraper

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsp-scraper

Scrapes TSP share prices from the TSP website.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 22 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts