Skip to main content

A Python library for scraping the Google search engine.

Project description

googlesearch

googlesearch is a Python library for searching Google, easily. googlesearch uses requests and BeautifulSoup4 to scrape Google.

usage

To get results for a search term, simply use the search function in googlesearch. For example, to get results for "Google" in Google, just run the following program:

from googlesearch import search
search("Google")

Additional options

googlesearch supports a few additional options. By default, googlesearch returns 10 results. This can be changed. To get a 100 results on Google for example, run the following program.

from googlesearch import search
search("Google", num_results=100)

You can change the language google searches in. For example, to get results in French run the following program:

from googlesearch import search
search("Google", lang="fr")

Also, you can specify the date range of search: from which date and to which date you want your returned results be published (or only one of this borders):

from googlesearch import search
search("Google", date_to='1/1/2018', date_from='1/1/2019')

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

googlesearch-python-extended-2020.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file googlesearch-python-extended-2020.1.0.tar.gz.

File metadata

  • Download URL: googlesearch-python-extended-2020.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for googlesearch-python-extended-2020.1.0.tar.gz
Algorithm Hash digest
SHA256 b747c143e31130998eae66dd1cd9f1a89654237eeaf63349688f1a1fedabbebf
MD5 db09b2a126c2683ed36335b9a88a77f5
BLAKE2b-256 f037e70d024e127043bcd0dbaa2a890cc0c2f0e4bafa8e2195bb440239e87432

See more details on using hashes here.

File details

Details for the file googlesearch_python_extended-2020.1.0-py3-none-any.whl.

File metadata

  • Download URL: googlesearch_python_extended-2020.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for googlesearch_python_extended-2020.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e27b64ca19cd16bcb3bb4d8e380e54d915e2714e0a6c4faf22d59ff07bc3e747
MD5 e68523d4d1fab51379dcc7e388c25ee5
BLAKE2b-256 99194820ffc3a0c0bd9ecf0fac70308cdaa28f0ae084b5e24049bafb25e044bc

See more details on using hashes here.

Supported by

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