Socket
Book a DemoInstallSign in
Socket

@chcaa/spa-scraper

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chcaa/spa-scraper

CLI to scrape SPAs

latest
npmnpm
Version
1.0.0
Version published
Maintainers
3
Created
Source

SPA Scraper

A tool for scraping single page applications

Installation

  • Install node.js version 16.x or higher

Usage

Run one of the following:

$ npx @chcaa/spa-scraper@latest ...

Local Usage

  • Clone this repository
  • Navigate to the root of the repository and run
$ npm install
$ node src/index.js ...

CLI options

  • -I, --include-directories <list> [optional] - Specify a comma-separated list of directories you wish to follow when downloading.

  • -q, --query-parameters [optional] - If you want to handle pages with different query parameters differently.

  • -s, --selector <selector> [optional] - Specify a CSS selector that defines when the page is loaded in. By default it waits until the network is idle, but that might not work if an unreachable resource has an indefinite timeout.

Example

$ npx @chcaa/spa-scraper@latest https://example.dk/ -I /dir1/,/dir2/
node src/index.js https://example.dk/ -I /dir1/,/dir2/

FAQs

Package last updated on 12 Sep 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.