[PR #1276] [MERGED] Revert leta #1147

Closed
opened 2026-02-25 21:30:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/benbusby/whoogle-search/pull/1276
Author: @Don-Swanson
Created: 11/24/2025
Status: Merged
Merged: 11/26/2025
Merged by: @Don-Swanson

Base: mainHead: revert_leta


📝 Commits (6)

  • 00d8aec Reverted to Before Leta Integration, and re-added other changes that were not Leta.
  • 5f17b82 up pytest to fix errors
  • 9b3a6ce Update README and codebase to enhance User Agent handling
  • 490fc6c UA ua_generator and generate_uas.py updates
  • 65326e3 Refactor User Agent handling in request.py and ua_generator.py
  • 1d3bd49 Merge branch 'main' into revert_leta

📊 Changes

18 files changed (+1340 additions, -63 deletions)

View changed files

.github/workflows/.pre-commit-config.yaml (+12 -0)
📝 .github/workflows/buildx.yml (+1 -1)
📝 .github/workflows/pypi.yml (+1 -1)
📝 README.md (+153 -10)
📝 app/__init__.py (+11 -0)
📝 app/models/config.py (+6 -2)
📝 app/request.py (+61 -35)
📝 app/routes.py (+8 -0)
📝 app/templates/footer.html (+3 -0)
📝 app/templates/index.html (+5 -0)
📝 app/utils/misc.py (+8 -12)
app/utils/ua_generator.py (+336 -0)
📝 app/version.py (+2 -1)
misc/check_google_user_agents.py (+363 -0)
misc/generate_uas.py (+198 -0)
📝 requirements.txt (+1 -1)
📝 test/conftest.py (+35 -0)
test/mock_google.py (+136 -0)

📄 Description

In this release, we reverted the Mullvad Leta implementation. It served us well and we’re grateful for it, but it’s time to let it take its final voyage to Valhalla. In its place, we added a feature that can randomly generate UA strings based on patterns we found in the ones that still work. You can also bring your own rotating list or stick with a static UA if that’s your thing. There’s a config toggle that shows the active UA at the bottom of the results to help with debugging. On top of that, we added two small tools that let you generate offline UA lists and automatically test them. The second of which was instrumental in finding the working string patterns we’re using now.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/benbusby/whoogle-search/pull/1276 **Author:** [@Don-Swanson](https://github.com/Don-Swanson) **Created:** 11/24/2025 **Status:** ✅ Merged **Merged:** 11/26/2025 **Merged by:** [@Don-Swanson](https://github.com/Don-Swanson) **Base:** `main` ← **Head:** `revert_leta` --- ### 📝 Commits (6) - [`00d8aec`](https://github.com/benbusby/whoogle-search/commit/00d8aec2fbc1538eda333a168c14e3f9111bd6fc) Reverted to Before Leta Integration, and re-added other changes that were not Leta. - [`5f17b82`](https://github.com/benbusby/whoogle-search/commit/5f17b827353298e89114cefedb928249569f5ef6) up pytest to fix errors - [`9b3a6ce`](https://github.com/benbusby/whoogle-search/commit/9b3a6ce550cd5f9438f4b187601a22a90e3d7194) Update README and codebase to enhance User Agent handling - [`490fc6c`](https://github.com/benbusby/whoogle-search/commit/490fc6c4f9915189552a13708133996e2387e241) UA ua_generator and generate_uas.py updates - [`65326e3`](https://github.com/benbusby/whoogle-search/commit/65326e37b444abf259b9652c9122964ee05b8012) Refactor User Agent handling in request.py and ua_generator.py - [`1d3bd49`](https://github.com/benbusby/whoogle-search/commit/1d3bd49d3cb2434bd512cac6906f82c65ea76974) Merge branch 'main' into revert_leta ### 📊 Changes **18 files changed** (+1340 additions, -63 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/.pre-commit-config.yaml` (+12 -0) 📝 `.github/workflows/buildx.yml` (+1 -1) 📝 `.github/workflows/pypi.yml` (+1 -1) 📝 `README.md` (+153 -10) 📝 `app/__init__.py` (+11 -0) 📝 `app/models/config.py` (+6 -2) 📝 `app/request.py` (+61 -35) 📝 `app/routes.py` (+8 -0) 📝 `app/templates/footer.html` (+3 -0) 📝 `app/templates/index.html` (+5 -0) 📝 `app/utils/misc.py` (+8 -12) ➕ `app/utils/ua_generator.py` (+336 -0) 📝 `app/version.py` (+2 -1) ➕ `misc/check_google_user_agents.py` (+363 -0) ➕ `misc/generate_uas.py` (+198 -0) 📝 `requirements.txt` (+1 -1) 📝 `test/conftest.py` (+35 -0) ➕ `test/mock_google.py` (+136 -0) </details> ### 📄 Description In this release, we reverted the Mullvad Leta implementation. It served us well and we’re grateful for it, but it’s time to let it take its final voyage to Valhalla. In its place, we added a feature that can randomly generate UA strings based on patterns we found in the ones that still work. You can also bring your own rotating list or stick with a static UA if that’s your thing. There’s a config toggle that shows the active UA at the bottom of the results to help with debugging. On top of that, we added two small tools that let you generate offline UA lists and automatically test them. The second of which was instrumental in finding the working string patterns we’re using now. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:30:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#1147
No description provided.