New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dschnare/chai

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dschnare/chai

A crawler that grabs the URL, page titles, and first H1 and H2 elements.

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Chai

Build Status Code Climate Test Coverage npm version License

Chai is a simple web crawler that scrapes relevant SEO data from each page it visits.

Usage

npm install @dschnare/chai -g
chai http://mywebsite.com > crawl.json

Scraping

Chai will scrape the following data from each page it visits.

  • Page title
  • All H1 values
  • All H2 values

The scrape data written to stdout is a JSON array of objects with the following shape:

{ title, url, headings: { h1: [], h2: [] } }

For URLs that respond with an error the scrape object has this shape:

{ url, statusCode, error }

Where error is the error object returned from Superagent.

Roadmap

  • Expose way to filter out URLs to be crawled
  • Expose way to customize the scraper
  • Make it easier to identify 404 URLs
  • Add option to control verbosity

FAQs

Package last updated on 13 Jun 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc