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

@gglvxd/googlesearcher

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gglvxd/googlesearcher

Simple google searcher without needing to pay for api

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
0
Weekly downloads
 
Created
Source

GoogleSearcher

Simple google searcher without needing to pay for high cost api

Setup

1.install the package

npm install @gglvxd/googlesearcher
  1. code
const { googlesearch } = require('@gglvxd/googlesearcher');

(async () => {
    try {
        console.log("Searching...");
        const results = await googlesearch('Hello world', 20, 2); // query, limit, page

        if (results.length === 0) {
            console.warn("no results found");
        } else {
            console.log("Results:");
            results.forEach((result, index) => {
                console.log(`Result ${index + 1}:`);
                console.log(`Title: ${result.title}`);
                console.log(`Link: ${result.link}`);
                console.log(`Description: ${result.description}`);
                console.log('---');
            });
        }
    } catch (error) {
        console.error(`Error: ${error.message}`);
    }
})();

Keywords

FAQs

Package last updated on 03 Dec 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