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

@voidpkg/scrapper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voidpkg/scrapper

A simple search scrapper for Google, Bing, Wikipedia etc. for NodeJS

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@voidpkg/scrapper

NPM Version NPM Downloads

Community

If you have any questions or want to help, join our Discord server.

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install @voidpkg/scrapper

Usage

const { Engine } = require('@voidpkg/scrapper');

Engine.google('Void Development', {
    proxies: [
        {
            host: '0.0.0.0',
            port: 8080,
            auth?: {
                username: 'clqu',
                password: '123456'
            }
        }
    ]
}).then(console.log).catch(console.error);

Engine API

/*
    types: 0 = Search, 1 = Suggestions, 2 = Images
*/

Engine.google(query, options, type);
Engine.bing(query, options, type);
Engine.youtube(query, options);
Engine.wikipedia(query, options);

With Constructor

const { Google, Bing, YouTube, Wikipedia } = require('@voidpkg/scrapper');
const proxies = [
    {
        host: '0.0.0.0',
        port: 8080,
        auth?: {
            username: 'clqu',
            password: '123456'
        }
    }
];

const google = new Google({ proxies });
const bing = new Bing({ proxies });
const youtube = new YouTube({ proxies });
const wikipedia = new Wikipedia({ proxies });

// Search
google.search('Void Development').then(console.log).catch(console.error);
bing.search('Void Development').then(console.log).catch(console.error);
youtube.search('Void Development').then(console.log).catch(console.error);
wikipedia.get('Void Development').then(console.log).catch(console.error);

// Suggestions
google.suggestions('Void Development').then(console.log).catch(console.error);
bing.suggestions('Void Development').then(console.log).catch(console.error);

Engines

NameState
Google Search
Google Suggestions
Google Images
Bing Search
Bing Suggestions
Bing Images
Wikipedia Search
YouTube Videos Search

Options

Google
NameRequiredTypeDefault
mktstringen-US
pagenumber1
perPagenumber10
safeoff, active, high, medium, safeUndefinedoff
headers{ [key: string]: any; }undefined
proxiesproxy[]undefined
queries{ [key: string]: any; }undefined
Bing
NameRequiredTypeDefault
mktstringen-US
pagenumber1
perPagenumber10
safeoff, moderate, strictoff
headers{ [key: string]: any; }undefined
proxiesproxy[]undefined
queries{ [key: string]: any; }undefined
YouTube
NameRequiredTypeDefault
headers{ [key: string]: any; }undefined
proxiesproxy[]undefined
queries{ [key: string]: any; }undefined
Wikipedia
NameRequiredTypeDefault
languagestringen
headers{ [key: string]: any; }undefined
proxiesproxy[]undefined
queries{ [key: string]: any; }undefined
Proxy
NameRequiredType
hoststring
portnumber
auth{ username: string; password: string; }

How to get free proxies?

License

MIT

Keywords

FAQs

Package last updated on 18 Mar 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

  • 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