Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vostersc/crawler

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vostersc/crawler

This package is a wrapper around Puppeteer. The package provides faster out of the box use by taking care of things like proxy urls, ips, user agents, and others.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Crawler

This package is a wrapper around Puppeteer. The package provides faster out of the box use by taking care of things like proxy urls, ips, user agents, and others.

Quick Start

  1. In terminal run npm i @vostersc/crawler
  2. Import const crawler = require('@vostersc/crawler');
  3. Write own selector function or use example selector. Console log the selector function for help writing your own. console.log(crawler.exampleSelectorFunction);
  4. Run crawler. const result = await crawler.getData([{url: url1, selector: crawler.exampleSelectorFunction}]);
  5. Your whole file should look something like this:
const crawler = require('@vostersc/crawler');

(async function(){
  const result = await crawler.getData([{url: 'https://reddit.com', selector: crawler.exampleSelectorFunction}]);
  console.log(result);
})()

Quick Start: Actions

  1. Follow the steps above but your final file should look something like this:
const crawler = require('@vostersc/crawler');

(async function(){
    const urls = [
        'http://shop.harmonsgrocery.com/search?search_term=black pepper',
        'http://shop.harmonsgrocery.com/search?search_term=banana',
        'http://shop.harmonsgrocery.com/search?search_term=1/2 cup flour'
    ];
    const qty = [7,1, 0];
    console.log(await doAction(urls, exampleActionFunction, qty));
})()

FAQs

Package last updated on 20 Feb 2024

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