старый пример (рабоает)
https://www.linuxquestions.org/quest...scripts-36719/
Код:

#!/usr/bin/env python
import sys
filePath = sys.argv[-1]
import requests
searchUrl = 'http://www.google.com/searchbyimage/upload'
multipart = {'encoded_image': (filePath, open(filePath, 'rb')), 'image_content': ''}
response = requests.post(searchUrl, files=multipart, allow_redirects=False)
fetchUrl = response.headers['Location']
print fetchUrl
import subprocess
subprocess.call([r'/opt/firefox/firefox', fetchUrl])
Код:

./test.py ~/Desktop/butterfly.jpg
новая документация -
https://developers.google.com/custom...ew#data_format