Skip to main content

Scraping google search results

Project description

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_searching-0.8.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

google_searching-0.8-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page