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

google-sr

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-sr

Fast and efficient Package for scraping Google search results without the need for an API key

  • 3.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
686
decreased by-44.36%
Maintainers
1
Weekly downloads
 
Created
Source

google-sr 🔍

testing workflow npm downloads GitHub issues NPM npm version CodeFactor

Simple & Fast Package for scraping Google search results without the need for an API key. 🚀

View documentation here

Features ✨

Install 📦

To get started, you can install google-sr using your preferred package manager:


# npm

npm install google-sr

# pnpm 

pnpm add google-sr

# yarn

yarn add google-sr

Usage

You can easily perform a single-page search like this:

import { search } from 'google-sr';

search({ query: 'nodejs' }).then(console.log);

// or if using await/async
const searchResults = await search({ query: 'nodejs' });
console.log(searchResults);
  • Read about the returned types here

By default only ResultTypes.SearchResult are returned, use the filterResults option to configure it

More detailed examples & usage can be found here

Additional examples can be found in tests

Disclaimer

This is not sponsored, supported, or affiliated with Google Inc.

Unlike the conventional recommendation of using the Google API, this module scrapes the Google search result page (which might potentially infringe upon Google's terms of service).

The source code within this repository is intended solely for educational purposes.

The author (typicalninja) & contributors takes no responsibility for any issues that arise from misuse, such as IP blocking by Google. Your discretion in usage is advised.

Tests

Tests are written using mocha and can be run by using the test script.

Weekly tests a executed using a github action to ensure compatibility

Project uses pnpm as its package manager

pnpm run test

Support & Bug Reporting 🛠️🐞

Make sure you are on the latest version before creating bug reports

Support and bug reporting both can be done on github issues

License

This repository and the code inside it is licensed under the Apache-2.0 License. Read LICENSE for more information.

Keywords

FAQs

Package last updated on 28 Aug 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