google-searching

Scraping google search results


Keywords
google, google-search, python, search
License
MIT
Install
pip install google-searching==0.8.1

Documentation

Python >= 3.6

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)