A command line tool for Google web and image search.
Project description
Install
Install Python
Install search_google via pip
pip install search_google
For the latest developer version, see Developer Install.
Usage
For usage details, refer to the documentation.
search_google -h search_google cat search_google cat --searchType=image search_google cat --save_links=cat.txt
Developer Notes
Developer Install
Install the latest developer version from github:
pip install git+https://github.com/rrwen/search_google
Install from cloned source:
git clone https://github.com/rrwen/search_google cd search_google pip install . -I
Documentation Maintenance
Ensure sphinx is installed pip install -U sphinx
Generate the documentation in docs/
pip install . -I sphinx-build -b html docs/source docs
Uploading to PyPi
Ensure twine is installed pip install twine
Delete dist directory
Update the versions in setup.py and docs/source/conf.py
Perform Documentation Maintenance
Create source distribution
Upload to PyPi
python setup.py sdist twine upload dist/*
Implementation
This command line tool used the Google Custom Search Engine (CSE) to perform web and image searches. It relied on googleapiclient.build and cse.list, where build was used to create a Google API object and cse was used to perform the searches. The class search_google.cse simply passed a dictionary of arguments onto build and cse and manipulated the results using properties and methods. search_google.cli was then used to create a command line interface for search_google.cse. In order to use build and cse, a Google Developer API Key and a Google CSE ID must be created to have access (see search_google Setup). Creating these keys required a Gmail account for login access.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.