Python library to get google search results.
Project description
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)
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygsearch-0.3.7.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file pygsearch-0.3.7.tar.gz
.
File metadata
- Download URL: pygsearch-0.3.7.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e00849eb3fcaccfa8bfa13a45ff8a787ce93e8b723b810cf6a67505ef658f09 |
|
MD5 | 4a83c09f1159d5b5d8417eab9744ce15 |
|
BLAKE2b-256 | e759dbcce722ecbd6513e4b4baaa65c856cbf929b2bb11977d9c5287392e910b |
File details
Details for the file pygsearch-0.3.7-py3-none-any.whl
.
File metadata
- Download URL: pygsearch-0.3.7-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe7ccd99fda4959b8e4898c75ea49aa631205fc831752c1800a397d9dcd9751 |
|
MD5 | 7b21f73f32a36f1be2476ca23db30b47 |
|
BLAKE2b-256 | 022c407b21c4f04c3a5b7935bf08c14bffa08b6de4d470390cb9e5bd8152ca6e |