pygsearch
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygsearch-0.6.0.tar.gz | 3.7 kB | Without provenance | Details for pygsearch-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygsearch-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pygsearch-0.6.0-py3-none-any.whl |
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
|
Security for pygsearch 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.