#StackBounty: #python-3.x #django #image #google-image-search How can I refine my Python reverse image search to limit to a specific do…

Bounty: 200

I’m using Python 3.8. I have the following script for launching a Google reverse image search …

    filePath = '/tmp/cat_and_dog.webp'
    searchUrl = 'http://www.google.hr/searchbyimage/upload'
    multipart = {'encoded_image': (filePath, open(filePath, 'rb')), 'image_content': '', }
    response = requests.post(searchUrl, files=multipart, allow_redirects=False)
    fetchUrl = response.headers['Location']
    webbrowser.open(fetchUrl)

Does anyone how, if possible, I can refine the search to a specific domain?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.