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

scraperkit

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scraperkit

Common utility functions that regularly need in web scrapper apps.

latest
npmnpm
Version
0.0.3-alpha.3
Version published
Maintainers
1
Created
Source

Scraperkit

Common utility functions that regularly need in web scrapper apps.

getHTML

const { getHTML } = require('scraperkit');
const res = await getHTML('https://example.com', {
  prerender: true,
  puppeteerLaunchConfig: {
    executablePath: `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome`
  }
});
console.log(res);

getSelectors

const htmlContent = `<html>...</html>`;
const selectors = getSelectors(htmlContent, ['meta', 'h1']);

TODO

  • Add proxy support for getHTML
  • Make it easy to debug issues

Resources

  • https://github.com/axios/axios/issues/925

FAQs

Package last updated on 18 Aug 2019

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