In actuality we get a KeyError where that url was supposed to be stored.Įvidently, Yandex doesn't work in exactly the same way, maybe the url is off (although I tried a heap ton of variations) or the reason may be completely different. So, in short the expected outcome would be a url with an image search. I know the code works cause if you substitute searchUrl with then the script returns the correct url. The script fails with KeyError, 'location' is not found. Response = requests.post(searchUrl, files=multipart, allow_redirects=False) So, consider this Python code: import requestsįilePath = "C:\\path\\whateverThisIs.png" It may be beneficial for locating its source, recognizing its content, or tracking down high-resolution. Yandex in particular is great for busting catfishes, even better than Google Images. Reverse image search is an efficient way to uncover more about an image online. I'm interested in automatizing reverse image search.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |