908 Commits

Author SHA1 Message Date
Don-Swanson
5a062aff29
Update User Agent generation from Opera to Safari 2026-03-23 18:10:15 -05:00
Don
2949510d68
Merge pull request #1286 from benbusby/updates
Updates, Features, and Bugfixes; Oh My!
v1.2.2
2025-12-29 09:50:24 -06:00
Don-Swanson
255f1a2c12
Bump version to 1.2.2 2025-12-29 09:45:26 -06:00
Don-Swanson
4852e5b64f
Implement Google Custom Search (BYOK) feature with configuration options and API client 2025-12-29 09:43:20 -06:00
Don-Swanson
9c5b3150aa
Add method to remove AI Overview sections from search results
- Introduced `remove_ai_overview` method in the `Filter` class to eliminate Google's AI Overview results from the main search results.
- Enhanced the filtering process by identifying and removing divs containing specific AI-related patterns, ensuring cleaner output for users.
2025-12-09 09:43:16 -06:00
Don-Swanson
6c7ca7c082
- Add modern Google Images parsing (udm=2) and use view_image to render extracted image results, with Chrome UA and forced image endpoint for tbm=isch/udm=2.
- Normalize layouts (image grid width) and inject styling tweaks; remove broken image pagination/next link with TODO left for proper paging.
v1.2.1-test
2025-11-26 22:21:23 -06:00
Don-Swanson
ff3a44b91e
Refactor configuration and session management in the application
- Updated `docker-compose.yml` to remove version specification for modern compatibility.
- Enhanced secret key management in `__init__.py` with a new function to load or generate a secure key.
- Changed session file handling from `pickle` to `json` for improved security and compatibility.
- Added security headers in `routes.py` to enhance application security.
- Updated version to 1.2.1 in `version.py`.
- Refactored key derivation method in `config.py` to use PBKDF2 for better security.
- Improved calculator widget's evaluation method to prevent arbitrary code execution.
2025-11-26 17:32:11 -06:00
Don
b3c09ade5c
Merge pull request #1279 from benbusby/updates
Updates
2025-11-26 16:51:03 -06:00
Don
a2ec4e9f22
Merge branch 'main' into updates 2025-11-26 16:50:30 -06:00
Don-Swanson
db6d031e86
Enhance GitHub Actions workflow for tag handling and debugging
- Added support for triggering builds on tag pushes.
- Introduced a debugging step to log workflow context information.
- Refined conditions for building and pushing Docker images based on actor and workflow run status.
2025-11-26 16:48:56 -06:00
Don
c96f5ada2e
Update buildx.yml 2025-11-26 16:42:39 -06:00
Don-Swanson
ccdeb60fc0
Update Dockerfile to use Python 3.12-alpine3.22 and remove unnecessary bridge package
- Changed base image from python:3.12.6-alpine3.20 to python:3.12-alpine3.22 for improved security and compatibility.
- Added command to remove the bridge package to mitigate CVEs, ensuring a cleaner build environment.
- Ensured pip is upgraded consistently across stages.
2025-11-26 16:36:34 -06:00
Don-Swanson
20ed493671
Dropping Support for armv7l due to security bugs in cryptography
- Adjusted `pyOpenSSL` versioning in `requirements.txt` to support armv7l architecture.
- Modified Docker build platforms in GitHub Actions workflow to exclude armv7, focusing on amd64 and arm64.
2025-11-26 16:19:40 -06:00
Don-Swanson
20753224f3
Refine GitHub Actions workflow condition to remove tag check for test success 2025-11-26 16:14:02 -06:00
Don-Swanson
71a2c10e58
Remove tag push from GitHub Actions workflow and disable related build step in favor of using GitHub releases for versioning. 2025-11-26 16:08:37 -06:00
Don
9ff2d2f90a
Update buildx.yml 2025-11-26 15:58:45 -06:00
Don-Swanson
0f000a676b
Update GitHub Actions workflows to use latest actions and improve build conditions
- Upgraded `actions/checkout` from v2 to v4 for better performance.
- Replaced deprecated buildx setup with `docker/setup-qemu-action` and `docker/setup-buildx-action`.
- Updated `docker/login-action` to v3 for enhanced security.
- Refined conditions for building and pushing Docker images based on workflow events.
2025-11-26 15:51:06 -06:00
Don-Swanson
7b56aa053b
Update notice 2025-11-26 15:43:52 -06:00
Don
f9f54115e3
Delete .github/workflows/.pre-commit-config.yaml 2025-11-26 15:39:54 -06:00
Don
c008090d83
Update docker_main.yml 2025-11-26 15:39:43 -06:00
Don
6bcde23501
Update buildx.yml 2025-11-26 15:39:23 -06:00
Don-Swanson
3698d9065e
- Added condition to the 'on-success' job to execute only if the preceding workflow run concludes successfully. 2025-11-26 15:36:24 -06:00
Don-Swanson
cffef7aa15
Update dependencies and configuration for version 1.2.0
- Bump target Python version to 3.12 in `pyproject.toml`.
- Update Flask to version 3.1.2 in `requirements.txt`.
- Remove deprecated dark mode configuration from the application.
- Adjust logo rendering in templates to remove dark mode dependency.
- Update GitHub Actions workflows to support the 'updates' branch for builds.
- Increment version to 1.1.3 with an optional update-testing tag.
2025-11-26 11:47:54 -06:00
Don-Swanson
178d67a73f
Bump version to update Brotli and fix release issue v1.1.2 2025-11-26 11:01:35 -06:00
Don-Swanson
65326e37b4
Refactor User Agent handling in request.py and ua_generator.py
- Removed hardcoded User Agent strings and replaced them with a fallback mechanism using DEFAULT_FALLBACK_UA.
- Updated gen_user_agent function to ensure compatibility with older configurations.
- Bumped version to 1.1.1 to reflect changes in User Agent management.
2025-11-23 22:16:53 -06:00
Don-Swanson
490fc6c4f9
UA ua_generator and generate_uas.py updates v1.1.1-beta 2025-11-23 21:10:50 -06:00
Don-Swanson
9b3a6ce550
Update README and codebase to enhance User Agent handling
- Revised README to reflect changes in Google search behavior and Whoogle's response strategies.
- Implemented a User Agent pool for improved request handling, including fallback mechanisms.
- Added configuration options for displaying the User Agent in search results.
- Introduced a command-line tool for generating custom User Agent strings.
- Enhanced request headers to include additional parameters for better compatibility with Google services.
2025-11-23 20:35:08 -06:00
Don-Swanson
5f17b82735
up pytest to fix errors 2025-11-23 12:05:45 -06:00
Don-Swanson
00d8aec2fb
Reverted to Before Leta Integration, and re-added other changes that were not Leta. 2025-11-22 21:50:01 -06: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
0fe29daaf1
Add pre-release build and push step in GitHub Actions workflow for versioned releases v1.0.0-beta 2025-09-23 23:52:52 -05: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
418d9df89c
Merge pull request #1242 from benbusby/dependabot/pip/jinja2-3.1.6
Bump jinja2 from 3.1.5 to 3.1.6
2025-09-20 16:45:25 -05:00
Don
3733d87546
Merge pull request #1243 from benbusby/dependabot/pip/cryptography-45.0.7
Bump cryptography from 3.3.2 to 45.0.7
2025-09-20 16:44:29 -05:00
Don
6782413560
Update requirements.txt 2025-09-20 16:24:20 -05:00
Don
1c1dcfc270
Update requirements.txt
Fixed dependency issues
2025-09-20 16:22:19 -05:00
Don
ba757b64e8
Update stale.yml 2025-09-15 08:31:29 -05:00