Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

google-sr-selectors

typicalninja77.2kApache-2.02.0.0TypeScript support: included

Html selectors for google search result pages.

google-sr, gsr, google, googlesr, search, google-search, googlesearch, scraping, selectors, cheerio

readme

google-sr-selectors

testing workflow npm downloads GitHub issues NPM license npm version Discord CodeFactor

For simple use cases, refer to google-sr

This package provides a set of CSS selectors for parsing Google search results, using tools such as cheerio, etc...

These selectors are compatible only with the search results page returned when the following user-agent is used: Links (2.29; Linux 6.11.0-13-generic x86_64; GNU C 13.2; text).

Important Note:

Due to the constantly evolving nature of Google's search page structure, we cannot guarantee consistent usage/validity of these selectors. Unless you are an advanced user with specific requirements, we highly recommend using the google-sr package instead of relying directly on google-sr-selectors.

Disclaimer

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

The source code within this repository is intended solely for educational & research purposes. The author (typicalninja) & contributors takes NO responsibility for any issues that arise from its use, such as IP blocking by Google. Your discretion in usage is advised.

Links

Related projects 🥂

  • google-sr - Simple tool to programmatically get google search results
  • google-that - CLI wrapper around google-sr

License

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