0.0.2 ā€¢ Published 8 months ago

google-sr-selectors v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

google-sr-selectors

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

Set of html selectors for parsing google search results with jquery like modules (ex: cheerio).

Please note that the included selectors are intended for the non-Javascript version of Google Search page. These were obtained by appending &gbv=1 to the regular query link.

ex: (disable javascript, else it will redirect): query nodejs

What are selectors?

Selectors form the backbone of packages like google-sr. These are predefined strings that outline the structure of specific HTML code representing the desired value. By utilizing selectors, we gain the ability to parse the HTML and precisely extract the intended information.

This package exports the selectors used to extract search result values from, google html page data we receive. Offered for purposes of contributors and other developers interested in parsing raw google search html.

Supported types

The package currently only supports a limited amount of selectors

You can view them in the documentation

šŸŒŸ Suggest more to be added here

Related projects šŸ„‚

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

Disclaimer

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

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.

License

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