842 Commits

Author SHA1 Message Date
Ben Busby
5701d0d55f
Bump version to 0.9.2 v0.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
041c1fbb35
Update cssutils to 2.7.0
Fixes #1207
2025-01-17 09:54:58 -07:00
Ben Busby
0130237913
Fix Ukranian language translation
Closes #1203
2025-01-16 17:33:56 -07:00
Klaus Agnoletti
d6bfa30b35
Update URL in README.md [skip ci] (#1200)
Updated URL pointing to how to set as default search engine
2025-01-16 17:33:11 -07:00
Peter Dave Hello
a15190e976
Reduce Docker image size by improving apk commands (#1205)
Replace redundant apk flags `-U` and `--update` with `--no-cache` to
prevent package index caching. This change unifies all apk package
commands for better maintainability and smaller image size.
2025-01-16 17:32:20 -07:00
Althior
88e2dda151
Update ad filter keyword for French language (#1208) 2025-01-16 17:31:50 -07:00
Ben Busby
6635716743
Temporarily disable search-related tests
Search related tests are going to be unstable for a bit while possible
workarounds for #1211 are being investigated.
2025-01-16 17:17:53 -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
36d8268643
[Important] Update readme w/ new project status [skip ci] 2025-01-16 11:10:43 -07:00
Ben Busby
e70bbabd63 Bump version to 0.9.1 v0.9.1 2024-10-31 17:36:37 -06:00
dependabot[bot]
4fad68adf2
Bump waitress from 2.1.2 to 3.0.1 (#1192)
Bumps [waitress](https://github.com/Pylons/waitress) from 2.1.2 to 3.0.1.
- [Release notes](https://github.com/Pylons/waitress/releases)
- [Changelog](https://github.com/Pylons/waitress/blob/main/CHANGES.txt)
- [Commits](https://github.com/Pylons/waitress/compare/v2.1.2...v3.0.1)

---
updated-dependencies:
- dependency-name: waitress
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-31 17:20:55 -06:00
dependabot[bot]
89d07abb6c
Bump werkzeug from 3.0.3 to 3.0.6 (#1190)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.3 to 3.0.6.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.3...3.0.6)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-31 17:17:11 -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 v0.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
xatier
9d7ab1e2f8
ci: update GitHub actions (#1155) 2024-09-30 11:22:42 -06:00
dependabot[bot]
441ce72527
Bump idna from 3.4 to 3.7 (#1137)
Bumps [idna](https://github.com/kjd/idna) from 3.4 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.4...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 11:18:24 -06:00
Andrew
58d54c6384
Update ad filter for Czech language (#1141) 2024-09-30 11:12:37 -06:00
dependabot[bot]
add9313a99
Bump werkzeug from 3.0.1 to 3.0.3 (#1150)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.1...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 11:12:04 -06:00
dependabot[bot]
436233f718
Bump jinja2 from 3.1.3 to 3.1.4 (#1151)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 11:09:38 -06:00
dependabot[bot]
58b7512707
Bump requests from 2.31.0 to 2.32.2 (#1180)
Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.2.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.31.0...v2.32.2)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 11:06:55 -06:00
dependabot[bot]
cc7907fb84
Bump cryptography from 42.0.4 to 43.0.1 (#1179)
* Bump cryptography from 42.0.4 to 43.0.1

Bumps [cryptography](https://github.com/pyca/cryptography) from 3.3.2 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/3.3.2...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update pyopenssl version

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Busby <contact@benbusby.com>
2024-09-30 11:00:43 -06:00
dependabot[bot]
ee5a536861
Bump urllib3 from 1.26.18 to 1.26.19 (#1161)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.18 to 1.26.19.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.19/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.18...1.26.19)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 10:52:25 -06:00
dependabot[bot]
5b8ac0c52e
Bump certifi from 2023.7.22 to 2024.7.4 (#1164)
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.7.22 to 2024.7.4.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.07.22...2024.07.04)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 10:49:01 -06:00
OldSoul.io
97394f2b02
Fix Alfred instructions in readme [skip ci] (#1156)
Fixed the inline codeblock for Alfred's search URL to display the url properly in the block.
2024-09-30 10:44:21 -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
Akopov
81420e035a
Update pipx instructions in readme [skip ci] (#1166)
If `pipx install git+<link>` is used, the user must have git installed,
otherwise the package cannot be installed. In the case of a direct link to the
archive, this is not required.
2024-09-30 10:35:58 -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
Amin
79b6e9a157
Add X-Forwarded-Host to nginx example [skip ci] (#1169) 2024-09-30 10:34:15 -06:00
Alpha
5cf5ad992a
docs: update fly.io free plan details [skip ci] (#1173)
Free plan no longer available in fly.io
https://fly.io/docs/about/pricing/#free-allowances
2024-09-30 10:33:08 -06:00
Vinfall
95f872ccde
fix: description in opensearch template (#1175) 2024-09-30 10:32:46 -06:00
Ben Busby
06c2310e3a
Update Docker base images, update workflows
Should fix issues with tomllib not being available in the docker related
builds, as well as the move from docker-compose to "docker compose" in
gh actions
2024-09-30 10:27:01 -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
David Shen
f18bf07ac3
Fix feeling lucky (#1130)
* Fix feeling lucky, fall through to display results if doesn't work

* Allow lucky bang anywhere

* Update feeling lucky test
2024-04-19 12:40:06 -06:00
David Shen
fd20135af0
Add support for custom bangs (#1132)
Add the possibility for user-defined bangs, stored in app/static/bangs. 

These are parsed in alphabetical order, with the DDG bangs parsed first.
2024-04-19 12:26:42 -06:00
Ben Busby
7a1ebfe975
Temporarily disable linux/arm/v7 builds
The arm/v7 builds have caused lots of problems due to the lack of
support from the cryptography library, and now issues related to
installing the latest version of cffi. As a result, this build variant
has been removed for now. It may or may not come back later, since the
amount of work just to figure out which library is broken and how to fix
it doesn't feel worth it anymore.
2024-03-06 12:31:38 -07:00
Ben Busby
efbbd6b9d6
Add render.com deployment instructions [skip ci]
Closes #833
2024-03-06 11:13:51 -07:00
Ben Busby
4d1d3f4984
Add public instance [skip ci]
https://search.snine.nl

Closes #1115
2024-03-06 10:58:32 -07:00