multipart = {'encoded_image': (filePath, open(filePath, 'rb')),
    'image_content': ''}
response = requests.post(searchUrl, files=multipart, allow_redirects=False)
Google reverse image search using POST request