https://github.com/deedy5/google_searching
Google.com search results
https://github.com/deedy5/google_searching
google google-search python search
Last synced: 4 months ago
JSON representation
Google.com search results
- Host: GitHub
- URL: https://github.com/deedy5/google_searching
- Owner: deedy5
- License: mit
- Created: 2021-08-09T12:00:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T14:41:29.000Z (over 3 years ago)
- Last Synced: 2024-10-10T09:26:08.283Z (over 1 year ago)
- Topics: google, google-search, python, search
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 [](https://github.com/deedy5/google_searching/releases) [](https://pypi.org/project/google_searching)
## Google_searching
Google.com search results.
### Install
```python
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.**
```python
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
```python
[
{'title': title of result,
'href': href of result,
'body': body of result},
...
]
```
### Example
```python3
from google_searching import ggl
r = ggl('usa', lang='en', max_results=100)
print(r)
```