google-sr-selectors
Version:
Html selectors for google search result pages.
46 lines (31 loc) • 2.73 kB
Markdown
# google-sr-selectors
[](https://github.com/typicalninja/google-sr)
[](https://www.npmjs.com/package/google-sr-selectors)
[](https://github.com/typicalninja/google-sr/issues)
[](https://www.npmjs.com/package/google-sr-selectors)
[](https://www.npmjs.com/package/google-sr-selectors)
[](https://discord.gg/ynwckXS9T2)
[](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.