Skip to main content

The Google search scraper for the Python programming language.

Project description

googlesearch.py

The Google search scraper for the Python programming language.

Installation instruction

  • Python 3.6 or later is required.
  • make sure the latest pip version is installed in your working environment.

If you meet the above requirements, run the following command given below to install the latest version of googlesearch.py:

pip install -U googlesearch.py

Get Started

Here is an example program.

import googlesearch_py

query = "what is programming language"

results = googlesearch_py.search(query)

print(results)

Program output:

If results are available for your search query, it will return a list containing dict objects; otherwise, it will return an empty list.

[
    {
        "url": "https://en.wikipedia.org/wiki/Programming_language",
        "title": "Programming language - Wikipedia",
        "description": "A programming language is a system of notation for writing computer programs. ... Most programming languages are text-based formal languages, but they may also be..."
    }
]

Project details


Download files

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

Source Distribution

googlesearch.py-1.6.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

googlesearch.py-1.6.1-py3-none-any.whl (2.6 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