UNPKG

google-sr-selectors

Version:

Html selectors for google search result pages.

46 lines (31 loc) 2.73 kB
# google-sr-selectors [![testing workflow](https://github.com/typicalninja/google-sr/actions/workflows/tests.yml/badge.svg)](https://github.com/typicalninja/google-sr) [![npm downloads](https://img.shields.io/npm/dw/google-sr-selectors)](https://www.npmjs.com/package/google-sr-selectors) [![GitHub issues](https://img.shields.io/github/issues/typicalninja/google-sr)](https://github.com/typicalninja/google-sr/issues) [![NPM license](https://img.shields.io/npm/l/google-sr-selectors)](https://www.npmjs.com/package/google-sr-selectors) [![npm version](https://img.shields.io/npm/v/google-sr-selectors)](https://www.npmjs.com/package/google-sr-selectors) [![Discord](https://img.shields.io/discord/807868280387665970)](https://discord.gg/ynwckXS9T2) [![CodeFactor](https://www.codefactor.io/repository/github/typicalninja/google-sr/badge)](https://www.codefactor.io/repository/github/typicalninja/google-sr) **For simple use cases, refer to [google-sr](https://github.com/typicalninja/google-sr/tree/master/packages/google-sr)** This package provides a set of CSS selectors for parsing Google search results, using tools such as [cheerio](https://github.com/cheeriojs/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](https://github.com/typicalninja/google-sr/tree/master/packages/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 - [API Documentation](https://typicalninja.github.io/google-sr) - [GitHub Repository](https://github.com/typicalninja/google-sr) - [NPM Package](https://www.npmjs.com/package/google-sr-selectors) - [Discord](https://discord.gg/ynwckXS9T2) # Related projects 🥂 * [google-sr](https://g-sr.vercel.app/google/sr) - Simple tool to programmatically get google search results * [google-that](https://g-sr.vercel.app/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](./LICENSE) for more information.