509 Commits

Author SHA1 Message Date
Don
97952c69da
Update version.py 2025-10-04 09:46:24 -05:00
Don-Swanson
c2d2f0a0c4
Implement Mullvad Leta backend support and update README
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.
2025-10-03 18:12:47 -05:00
Don-Swanson
c46ec6f937
Add clean_text_spacing function to normalize text spacing in search results
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.
2025-10-02 08:14:24 -05:00
Don-Swanson
65c0c99dad
Fix test_prefs_url 2025-10-01 22:21:17 -05:00
Don-Swanson
20111a8f88
Refactor search function to improve title extraction by including CVA68e class and enhance content retrieval logic with additional snippet class handling, ensuring more accurate results. 2025-10-01 20:58:51 -05:00
Don-Swanson
bb3347f7ff
Enhance search function to extract title and content separately, maintaining backward compatibility in JSON response. 2025-10-01 19:18:22 -05:00
Don
e0a4a5f2cb
Merge pull request #1251 from rstefko/images-with-links
Re-enable view_image functionality
2025-09-30 21:09:11 -05:00
Don-Swanson
457725ee5a
Enhance link extraction logic in search function to handle cases with no result containers, improving robustness and accuracy of results. 2025-09-30 20:32:51 -05:00
Don-Swanson
442060b2ef
Fixed JSON search function to improve link extraction by targeting specific result containers and retrieving all relevant text, enhancing the accuracy of search results. 2025-09-30 20:12:26 -05:00
rstefko
ca214cb563 Allow view_image on mobile too, to be able to see origin 2025-09-28 08:46:18 +02:00
rstefko
33cdaf390d Fixed too big images 2025-09-28 08:45:43 +02:00
rstefko
9dd33de91a Seems to be working again with new UA 2025-09-28 08:32:23 +02:00
Don-Swanson
579d983db8
Update GitHub Actions workflows to trigger builds on release events and enforce versioning for PyPI publishing. Change application version to '1.0.0-beta'. 2025-09-23 23:47:11 -05:00
Don-Swanson
be83605c77
Update dependencies in requirements.txt and refactor file handling in app initialization and utility functions to use context managers for better resource management. Adjust filter logic to utilize 'string' instead of 'text' for BeautifulSoup queries, enhancing compatibility with future versions. 2025-09-23 22:14:41 -05:00
Don-Swanson
ffdeeb5f44
Enhance autocomplete functionality by adding environment variable check to enable/disable it globally. Improve error handling in HTTP client for closed connections and add client recreation logic. Refactor link extraction to avoid details elements in search results. 2025-09-23 21:37:21 -05:00
Don-Swanson
99c7c7b00d
Refactor search and test files to ensure proper context usage for Config initialization. Updated search function to use fallback for full_query and adjusted tests to utilize app context for Config instantiation. 2025-09-21 00:24:22 -05:00
Don-Swanson
7f80eb1e51
feat(beta): httpx migration, Tor/proxy refactor, JSON results, alt-link fixes, tests, optional static bundling, HTTP/2 env toggle, cleanup 2025-09-21 00:11:54 -05:00
Don
ec9e7877b6
Merge pull request #1228 from tunazorlu/turkishtranslation
LGTM
2025-09-14 08:23:01 -05:00
Don
c70497d532
Update countries.json
Macedonia is now North Macedonia
2025-09-14 08:06:52 -05:00
Don
69d1ddae0c
Updated UI Config to respect User Agent in ENV file if exists (#1240)
* Updated UI Config to respect User Agent in ENV file if exists

* Updated version number
2025-09-12 19:24:44 -06:00
Yaşar Tuna Zorlu
339eb61cea Turkish Language Translation Update
-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
2025-05-03 11:49:05 +03:00
Ben Busby
f25611cbcb
Add 4get as an option for continuing search
Closes #1222
2025-02-25 15:53:46 -07:00
Ben Busby
1339c49dc5
Temporarily disable full size image search
The reliance on non-mobile user agents breaks the full size image search
config option, leading to empty image search result pages
2025-01-29 10:50:27 -07:00
Ben Busby
dda91ad155
Bump version to 0.9.3 2025-01-22 12:14:10 -07:00
Ben Busby
fb19bded0d
Fix styling of pages using lynx user agent
See #1211
2025-01-22 12:00:57 -07:00
Ben Busby
5701d0d55f
Bump version to 0.9.2 2025-01-19 14:13:56 -07:00
Ben Busby
50625f222f
Revert changes to config vars from #1212
Fixes #1214

Fixes #1216
2025-01-19 13:13:14 -07:00
James
99ca67c90e
Fix duckduckgo search parameter (#1201)
Removed an extra search parameter: 'search' (lol)
2025-01-17 14:16:03 -07:00
Don
389c0a4d8d
Add UserAgent configuration (#1212)
* 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>
2025-01-17 10:17:50 -07:00
Ben Busby
0130237913
Fix Ukranian language translation
Closes #1203
2025-01-16 17:33:56 -07:00
Althior
88e2dda151
Update ad filter keyword for French language (#1208) 2025-01-16 17:31:50 -07:00
Ben Busby
6f1e1e6847
Force using Lynx UA for all searches
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
2025-01-16 16:43:08 -07:00
Ben Busby
e70bbabd63 Bump version to 0.9.1 2024-10-31 17:36:37 -06:00
Dave Fatkin
a8205c3043
Use alternate USPS link for package tracking [skip ci] (#1191)
The previous tracking link would sometimes lead to a blank page
2024-10-31 17:11:36 -06:00
Roman Štefko
1b9f7990b6
Allow setting fallback search engine (#1184)
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=).
2024-10-31 17:06:47 -06:00
Tarek
c54f4a79a6
Add ability to set custom dotenv path (#1183)
* add ability to set custom dotenv path

* add `WHOOGLE_DOTENV_PATH` to environment variables table
2024-10-31 16:52:18 -06:00
Ben Busby
223f00c3c0 Switch from pickle->json for config encoding
`pickle.loads` is insecure (and unnecessary in this context). The
simpler data types of the config model can easily be serialized to json
instead.
2024-10-31 16:43:29 -06:00
Ben Busby
466cb63d0e
Bump version to 0.9.0 2024-09-30 12:18:09 -06:00
Ben Busby
c056322037
Use .lower() when accessing the cache busting map
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
2024-09-30 12:00:52 -06:00
Ben Busby
5eb609d0b2
Hide line below search bar in dark themes
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.
2024-09-30 11:57:12 -06:00
Ben Busby
a016a1bcf4
Use raw string for matching regex in results.py
Fixes #1144
2024-09-30 11:41:13 -06:00
Ben Busby
6924f5ce0d
Update ad filter keyword for Dutch language
Fixes #1172
2024-09-30 11:33:50 -06:00
Ben Busby
6abe5511f4
Update ad filter keyword for Korean language
Fixes #1162
2024-09-30 11:32:29 -06:00
Andrew
58d54c6384
Update ad filter for Czech language (#1141) 2024-09-30 11:12:37 -06:00
Akopov
91112f1b7b
Refactor utils/misc.py (#1165)
* Improving readability, removing unnecessary elements, etc.

* Minor changes to comment style and favicon response code

---------

Co-authored-by: Ben Busby <contact@benbusby.com>
2024-09-30 10:42:12 -06:00
Matt Burns
a509169110
Add SO as a default site alternative (#1168)
SO -> farside.link/anonymousoverflow
2024-09-30 10:34:54 -06:00
Vinfall
95f872ccde
fix: description in opensearch template (#1175) 2024-09-30 10:32:46 -06:00
Ben Busby
9bfdd88a5e
Fix input cursor position bug on mobile
Refactors how search suggestions are added to the view

Fixes #1133
2024-04-19 14:00:12 -06:00
Ben Busby
37ff61dfac
Fall back to random secret key on permission exception
Fixes #1136
2024-04-19 12:49:52 -06:00
David Shen
80e41e6b44
Attempt to query on error condition and print trace (#1131) 2024-04-19 12:47:07 -06:00