Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python library to do google search

Project description

Code issues

Using google search engine from python

Tested python version

  • python 2.7.6
  • python 3.4.3

Installation

$ pip install pygoogling

Usage

For now, this library only contain one class, GoogleSearch. Here is a short description to use this library.

from pygoogling.googling import GoogleSearch


google_search = GoogleSearch('python')
google_search.start_search(max_page=3)
print(google_search.search_result) # will print the url as list of string
google_search.more_page(4) # to search 4 extra pages
print(google_search.search_result) # the result will be added to current result

The keyword is the only requirement to initiate this class. The max_page parameter is used to determine how many google web page result you want to parse. By default, max_page will be one. The GoogleSearch.more_page() is a method used to do extra search. The only required parameter is how many more pages you want to get the result of google search.

Project details


Release history Release notifications

Download files

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

Files for pygoogling, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pygoogling-0.0.2-py2.py3-none-any.whl (4.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pygoogling-0.0.2-py3.4.egg (5.3 kB) File type Egg Python version 3.4 Upload date Hashes View hashes
Filename, size pygoogling-0.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page