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

harry-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harry-js

Allows a user to extract out all the relevant content from a webpage based on links

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Webscrape analyser library

Allows a user to extract out all the relevant content from a webpage based on links

Installing

npm i harry-js

Example Typescript Usage

import { harry, IHarry } from 'harry-js'

const selectors: IHarry[] = [{
    attributes: ['src'],
    selector: 'img',
}]

const run = async () => {
    const res = await harry('https://www.bbc.co.uk/news/technology-44779998', selectors)
    console.log('found res ', res.length)
    res.forEach((r) => {
        r.result.forEach((v) => {
            console.log(v.attribute, ' ', v.value)
        })
    })
}
run();

Development Set Up

Clone this repo and run npm i

Building

npm run build

FAQs

Package last updated on 10 Jul 2018

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