This commit introduces support for the Mullvad Leta search backend, which is now enabled by default. It includes a new conversion function to transform Leta's search results into a format compatible with Whoogle. The README has been updated to reflect this change, detailing the limitations of the Leta backend and how to switch back to Google if needed. Additionally, the configuration model has been updated to include a setting for enabling/disabling the Leta backend.
This new function addresses spacing issues in text extracted from HTML, ensuring proper formatting for titles and content in the search function. It replaces direct text extraction calls with clean_text_spacing to enhance the overall text quality and consistency.
-Turkish translation added,
-"Turkish language name" in turkish is "Türkçe" so fixed it on languages.json
-Turkey's name changed into Türkiye in 2022 as stated in United Nations (please refer to the UN related webpage: https://bit.ly/turkiyeofficialname). And the order in the language list has also been adjusted so that the letter u is followed by the letter ü when listing Türkiye.
e4cabe
* feat: Set Lynx as default user agent and improve custom user agent handling
* chore: Remove user agent debug logging
* Add User Agent wiki link, remove whitespace
---------
Co-authored-by: Ben Busby <contact@benbusby.com>
This is a possible fix for the recent removal of javascript-free search
results by Google. Forcing the Lynx user agent to be used for all
searches returns search results, although they're formatted a bit
differently than before. If this proves to be a long term fix, styling
can be fixed at a later date.
See #1211
Allow setting a fallback Search Engine URL when there is internal server error
or instance is rate-limited. Search query is appended to the end of the URL
(eg. https://duckduckgo.com/?k1=-1&q=).
Cache busted resources will always have a lowercase name. For some
reason, a user encountered a capitalized css file name in #1142. This
isn't present anywhere in the Whoogle repo, but could be a byproduct of
some self-hosting configuration. Either way, the key used should always
be lowercase.
Fixes#1142
The results return an empty div with a background color set (not sure
why, not generated on Whoogle's side). This unsets the background color
so that at least it isn't visible.
* Improving readability, removing unnecessary elements, etc.
* Minor changes to comment style and favicon response code
---------
Co-authored-by: Ben Busby <contact@benbusby.com>