green-bacon-sandals

Get random image from google images


Keywords
google, images, bacon
License
MIT
Install
pip install green-bacon-sandals==0.2

Documentation

green-bacon-sandals

Get a random image from google images based on 3 random words. This was built after joke in the pub when we needed placeholder images when building a site.

Usage

import green-bacon-sandals
# get this from https://www.google.com/cse/all
cxCode = ""

# obtain this from https://console.developers.google.com/ (after creating a Project and going to API credentials)
key = ""

print(green-bacon-sandals.get_image(cx_code, key)