Name | pygsearch JSON |
Version |
0.6.0
JSON |
| download |
home_page | None |
Summary | Python library to get google search results |
upload_time | 2025-01-14 03:54:05 |
maintainer | None |
docs_url | None |
author | atbuy |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
search
google
query
python
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pygsearch
![pypi version info](https://img.shields.io/pypi/v/pygsearch.svg)
![python version support](https://img.shields.io/pypi/pyversions/pygsearch.svg)
`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:
```sh
# 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:
```py
from pygsearch import gsearch
search = gsearch("github")
print(search.results)
```
Or you can iterate over the results:
```py
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:
```py
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)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pygsearch",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "search, google, query, python",
"author": "atbuy",
"author_email": "buy@atbuy.dev",
"download_url": "https://files.pythonhosted.org/packages/1f/e2/27683e4a4421d03a622fa5e3b4e7290f9787da9d504c107d532e458423c4/pygsearch-0.6.0.tar.gz",
"platform": null,
"description": "# pygsearch\n\n![pypi version info](https://img.shields.io/pypi/v/pygsearch.svg)\n![python version support](https://img.shields.io/pypi/pyversions/pygsearch.svg)\n\n\n`pygsearch` is a python library that let's you use google search.\nRight now you can't search for images. Image support might be added later. PRs are welcome.\n\n\nInstalling\n-----------\n\n**Python 3.6.0 or higher is required**\n\nTo install the library you can run the following command:\n\n```sh\n# Linux/MacOS\npython3 -m pip install --upgrade pygsearch\n\n# Windows\npy -3 -m pip install --upgrade pygsearch\n```\n\nQuickstart\n----------\n\nYou can make a simple search query like this:\n\n```py\nfrom pygsearch import gsearch\n\nsearch = gsearch(\"github\")\nprint(search.results)\n```\n\nOr you can iterate over the results:\n\n```py\nfrom pygsearch import gsearch\n\nresults = gsearch(\"github\")\nfor result in results:\n print(result)\n```\n\nYou can also change how many results you want, pass your own headers, use proxies or even change the language:\n\n```py\nfrom pygsearch import gsearch\n\nproxies = {\n \"http\": \"proxy_http\",\n \"https\": \"proxy_https\",\n \"ftp\": \"proxy_ftp\"\n}\n\nheaders = {\n \"key1\": \"val1\",\n \"key2\": \"val2\",\n \"key3\": \"val3\",\n}\n\nlanguage = \"en\"\nsearch = gsearch(\"github\", 20, language, headers, proxies)\nprint(search.results)\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library to get google search results",
"version": "0.6.0",
"project_urls": {
"Bug Tracker": "https://github.com/atbuy/pygsearch/issues",
"CI/CD": "https://github.com/atbuy/pygsearch/actions",
"Homepage": "https://github.com/atbuy/pygsearch",
"Repository": "https://github.com/atbuy/pygsearch",
"Source Code": "https://github.com/atbuy/pygsearch"
},
"split_keywords": [
"search",
" google",
" query",
" python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "525c3005b20e1de5308accec33b5bbb1a453620df22f9593090e19499c6f8cf0",
"md5": "b32659550787f5913970a0822f704473",
"sha256": "c6173d9c6d4ae7574f5a3b3859f245043b0633bb04c2082e60761218157a217e"
},
"downloads": -1,
"filename": "pygsearch-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b32659550787f5913970a0822f704473",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 4273,
"upload_time": "2025-01-14T03:54:03",
"upload_time_iso_8601": "2025-01-14T03:54:03.078498Z",
"url": "https://files.pythonhosted.org/packages/52/5c/3005b20e1de5308accec33b5bbb1a453620df22f9593090e19499c6f8cf0/pygsearch-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1fe227683e4a4421d03a622fa5e3b4e7290f9787da9d504c107d532e458423c4",
"md5": "2e2cac5d461a98124ce1bf3edd1af10a",
"sha256": "b13063fcdd78dbdb7ef37f89a2e8a26016fb77826028f687a8315b0e98325057"
},
"downloads": -1,
"filename": "pygsearch-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "2e2cac5d461a98124ce1bf3edd1af10a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 3675,
"upload_time": "2025-01-14T03:54:05",
"upload_time_iso_8601": "2025-01-14T03:54:05.633930Z",
"url": "https://files.pythonhosted.org/packages/1f/e2/27683e4a4421d03a622fa5e3b4e7290f9787da9d504c107d532e458423c4/pygsearch-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-14 03:54:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "atbuy",
"github_project": "pygsearch",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "pygsearch"
}