Scraping google search results
Project description
Google_searching
Google.com search results.
Install
pip install -U google_searching
Usage
WARNING!: the site gives an captcha when making frequent repeated requests.
Call ggl() function again after at least 5 seconds.
from google_searching import ggl
ggl(keywords, lang='en', max_results=20):
''' Google search
keywords: keywords for query,
lang: language of search results,
max_results: not limited, in practice about 500.
'''
Returns
[
{'title': title of result,
'href': href of result,
'body': body of result},
...
]
Example
from google_searching import ggl
r = ggl('usa', lang='en', max_results=100)
print(r)
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
Built Distribution
File details
Details for the file google_searching-0.8.1.tar.gz
.
File metadata
- Download URL: google_searching-0.8.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b1aa9e349e6a7a5199ef905d6eaa3ce533a9a9b6700bd24ac21d7eebb3ec88 |
|
MD5 | d989f93f1cff822906cad08c27444a6d |
|
BLAKE2b-256 | 0256e9f4a55d0fb5d689682a4b022cd031077924f749668abd761f4f978c2ebe |
File details
Details for the file google_searching-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: google_searching-0.8.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489e1c7bb1a184fc07ffe48c1f39cc4f99df6cdb31f40da2cd7d12f33b5fb4bd |
|
MD5 | fb723d28412778fe73eb83ecdafe7d18 |
|
BLAKE2b-256 | 8a901bfe38defe0db0ee873ddb8cedc361b8c34cc33cbccf1acc90360faeaa5f |