Skip to main content

pygsearch

pypi version info python version support

pygsearch is a python library that let's you use google search. Right now you can't search for images. Image support might be added later. PRs are welcome.

Installing

Python 3.6.0 or higher is required

To install the library you can run the following command:

# Linux/MacOS
python3 -m pip install --upgrade pygsearch

# Windows
py -3 -m pip install --upgrade pygsearch

Quickstart

You can make a simple search query like this:

from pygsearch import gsearch

search = gsearch("github")
print(search.results)

Or you can iterate over the results:

from pygsearch import gsearch

results = gsearch("github")
for result in results:
    print(result)

You can also change how many results you want, pass your own headers, use proxies or even change the language:

from pygsearch import gsearch

proxies = {
    "http": "proxy_http",
    "https": "proxy_https",
    "ftp": "proxy_ftp"
}

headers = {
    "key1": "val1",
    "key2": "val2",
    "key3": "val3",
}

language = "en"
search = gsearch("github", 20, language, headers, proxies)
print(search.results)

Metadata

Release files for pygsearch 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygsearch 0.6.0
File Size Uploaded
pygsearch-0.6.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygsearch 0.6.0
File Interpreter ABI Platform
pygsearch-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / pygsearch-0.6.0.tar.gz

Download URL pygsearch-0.6.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b13063fcdd78dbdb7ef37f89a2e8a26016fb77826028f687a8315b0e98325057
BLAKE2b-256 checksum
How to use checksums
1fe227683e4a4421d03a622fa5e3b4e7290f9787da9d504c107d532e458423c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / pygsearch-0.6.0-py3-none-any.whl

Download URL pygsearch-0.6.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6173d9c6d4ae7574f5a3b3859f245043b0633bb04c2082e60761218157a217e
BLAKE2b-256 checksum
How to use checksums
525c3005b20e1de5308accec33b5bbb1a453620df22f9593090e19499c6f8cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.4.3

2 release files

0.3.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page