librex icon indicating copy to clipboard operation
librex copied to clipboard

Results language not respected in image search

Open megamster opened this issue 2 years ago • 3 comments

When setting the results language to Portuguese (pt), normal web search correctly assumes the language selection but image search doesn't, making image search completely unusable for most searches.

As an a example, searching for "coche" ("carriage") doesn't generate a single image for a carriage, all the results being for images of cars. Whoogle, when set to Portuguese, for this query correctly gives out exclusively images of carriages, as one would expect, not a single car to be seen

megamster avatar Apr 25 '23 03:04 megamster

QWant (engine used for image search) only supports 3 languages: English, French and German

QWant by default sets the language with a cookie in your browser, but the same effect with results can be achieved with the locale query. Examples: French results -> fr_fr German results -> de_de And so on...

The second code after the _ is the country, but you don't have to send the country and simply fr would just work. So the solution could be as simple as just sending the language code with the locale query. If the language is not supported, it will default to English.

ghost avatar May 26 '23 11:05 ghost

@codedipper if Qwant is being used, that explains it. Only google is usable for searching in Portuguese. Anything bing based will either give out decent results, though not as good as google, or straight up garbage, depending on query. That's with all conceivable locale settings applied. Any specific reason why google can't be used for image search?

megamster avatar May 26 '23 11:05 megamster

I'm waiting for a reply from her, but my guess would be that Google is extremely unfriendly to scrapers, and that Google is (respectfully) a hot mess of HTML and JavaScript.

Edit: pic-selected-230526-0847-31

ghost avatar May 26 '23 11:05 ghost