Skip to main content

allows access to some Google Search features which may not be easily accessible using the official Google APIs

Project description

easygooglesearch.py

This tiny module allows access to some Google Search features which may not be easily accessible using the official Google APIs. Only the beautifulsoup4 and requests modules are required. Please note that Google may change how the Google Search websites work at any moment, or even ban those who are overusing/abusing their features, which this module will happily allow one to do. Use this module carefully at your own risk.

Documentation

Google Search

easygooglesearch.get_autocomplete_entry(query : str)

returns a list of strings, or None Takes a query and returns Google's autocompletes.

Google Images

easygooglesearch.reverse_gimage(imagelink : str)

returns string Takes the link to an image and returns what Google thinks the image is.

easygooglesearch.reverse_gimage_link(imagelink : str)

returns string Takes the link to an image and returns a link to a Google Search of that image.

Exceptions

easygooglesearch.Error(Exception)

This is the base class for exceptions in the easygooglesearch module.

easygooglesearch.NetworkError(Error)

This exception is raised when the data easygooglesearch is trying to access on the Internet can't be reached.

easygooglesearch.DecodeError(Error)

This exception is raised when easygooglesearch doesn't understand the data it got from the Internet. This may indicate that Google has blocked or ratelimited due to overuse/abuse. This can sometimes be fixed by accessing a Google webpage, upon which Google will try to see if you're a robot, and you can lie through your teeth. This error could also indicate that the webpage structure has changed and the module doesn't know what to do. If updating easygooglesearch doesn't fix this problem, see if there is an issue is open, and if not, submit your own.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

easygooglesearch-0.1.0-py3-none-any.whl (16.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page