ssborbis / ContextSearch-web-ext

Search engine manager for modern browsers
321 stars 36 forks source link

Google Images and Google Lens engines #600

Closed MW-J97 closed 11 months ago

MW-J97 commented 1 year ago

Hi,

I want engines for those above sites for reverse image search. As the old engine for Google Images is not working. This is the old: https://www.google.com/searchbyimage?site=search&image_url={searchTerms}

7peanuts commented 1 year ago

https://github.com/dessant/search-by-image/issues/221 It looks like Google has changed the api. Hoping to find a solution. 😱

MW-J97 commented 1 year ago

Yes, I think so, as even iOS Shortcuts for reverse image not working on Google engine.

ssborbis commented 1 year ago

This works for me in FF on desktop https://lens.google.com/uploadbyurl?url=%s

MW-J97 commented 1 year ago

https://lens.google.com/uploadbyurl?url=%s

It works. Thank you so much. But, for the old view of Google Image search that now called "Find image source", is there any engine for it??

ssborbis commented 1 year ago

But, for the old view of Google Image search that now called "Find image source", is there any engine for it??

I don't know what the old site looked like. When you search an image URL using plain old google, it redirects to google images. Dunno if that's what you're looking for...

ssborbis commented 1 year ago

If the results you want are where you are redirected when you click "Find Image Source", just write some post-search script to click that link

maggotb commented 1 year ago

But, for the old view of Google Image search that now called "Find image source", is there any engine for it??

I don't know what the old site looked like. When you search an image URL using plain old google, it redirects to google images. Dunno if that's what you're looking for...

He's talking about this

It works with search image extension maybe there's a way to fix it

7peanuts commented 1 year ago

I don't know what the old site looked like.

Google reverse image search, it is available in the default engine of ContextSsearch, but due to some changes in Google, it doesn't work now. I hope it's only temporary. 😮

ssborbis commented 1 year ago

Google Lens with a script to redirect to Google Images. I'm sure there's another way, but this works

google_images_old.json.zip

MW-J97 commented 1 year ago

google_images_old.json.zip

So, what should I do with this? Will I use script extension like Tampermonkey?

ssborbis commented 1 year ago

So, what should I do with this? Will I use script extension like Tampermonkey?

Nah, unzip it, then import the json. Latest versions of CS allow individual or groups of engines to be imported / exported

maggotb commented 1 year ago

This add-on uses google images directly Source

Maybe an {image} parameter to upload the image could work?

Also this seems to be a fix

bohdansok commented 1 year ago

https://lens.google.com/uploadbyurl?url=%s

It works. Thank you so much.

It does works but from desktop browsers only. And it doesn't if you are trying to use this URL from mobile device. Nobody knows why.

ssborbis commented 1 year ago

Maybe an {image} parameter to upload the image could work?

It depends on the website's API for handling requests. I can pretty easily convert images to data URIs to submit to GET/POST engines, but it gets much trickier if the websites rely on file browsers and copy/paste or drag & drop. I'm fine to look into solutions if they have some broader uses than just a one-off website. Of course, if that one-off is Google, it's probably useful to do anyway.

7peanuts commented 1 year ago

This add-on uses google images directly Source

Maybe an {image} parameter to upload the image could work?

Also this seems to be a fix

Wow, it works, and this sbisrc= parameter can be filled with any alphanumeric.

https://www.google.com/searchbyimage?sbisrc=1orwhatever&image_url={searchTerms}&safe=off

maggotb commented 1 year ago

This add-on uses google images directly Source Maybe an {image} parameter to upload the image could work? Also this seems to be a fix

Wow, it works, and this sbisrc= parameter can be filled with any alphanumeric.

https://www.google.com/searchbyimage?sbisrc=1orwhatever&image_url={searchTerms}&safe=off

Wow thank you! Hopefully google doesn't mess things up again

harryray33 commented 1 year ago

If I use select image, Google works, but Yandex doesn't. But if I use select URL, the opposite is true.

What I'm having to do is to use the context menu to search Yandex and use the browser toolbar to search Google. A bit of a nuisance as it means I can't use the context menu to search for Google and Yandex at the same time.

ssborbis commented 1 year ago

What I'm having to do is to use the context menu to search Yandex and use the browser toolbar to search Google.

Could you elaborate on this a bit? Sounds like a bug I should check out.