whoogle-search/app/utils
Ben Busby c8da53d4b0
Block websites from search results via user config (#304)
* Block websites in search results via user config

Adds a new config field "Block" to specify a comma separated list of
websites to block in search results. This is applied for all searches.

* Add test for blocking sites from search results

* Document WHOOGLE_CONFIG_BLOCK usage

* Strip '-site:' filters from query in header template

The 'behind the scenes' site filter applied for blocked sites was
appearing in the query field when navigating between search categories
(all -> images -> news, etc). This prevents the filter from appearing in
all except "images", since the image category uses a separate header.
This should eventually be addressed when the image page can begin using
the standard whoogle header, but until then, the filter will still
appear for image searches.
2021-05-07 11:45:53 -04:00
..
__init__.py Project refactor (#85) 2020-06-02 12:54:47 -06:00
bangs.py Improve naming of *_utils files, update fn/class doc 2021-04-05 11:00:56 -04:00
results.py Allow setting environment variables in whoogle.env (#237) 2021-04-05 11:00:56 -04:00
search.py Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
session.py Switch to single Fernet key per session 2021-04-05 11:00:56 -04:00