Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
511e6f54ed | |||
62c8ff645a | |||
33d6a9c1cc | |||
855209b8a5 | |||
8049e51a75 | |||
c62cd7ce24 | |||
eb9a111664 | |||
c835ddd47a | |||
4b019d7d58 | |||
36a680ad58 | |||
d7f49e7524 | |||
ffbd13cf55 | |||
29465145e6 | |||
76c3908cb2 |
2
.env
2
.env
@ -1,2 +1,2 @@
|
||||
PROD_URL=searx.gmoker.com
|
||||
IMAGEAPP=docker.io/searxng/searxng:2024.12.22-26097f444
|
||||
IMAGEAPP=docker.io/searxng/searxng:2024.12.25-73e395c8c
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -334,6 +334,25 @@ engines:
|
||||
timeout: 6
|
||||
disabled: true
|
||||
|
||||
- name: alexandria
|
||||
engine: json_engine
|
||||
shortcut: alx
|
||||
categories: general
|
||||
paging: true
|
||||
search_url: https://api.alexandria.org/?a=1&q={query}&p={pageno}
|
||||
results_query: results
|
||||
title_query: title
|
||||
url_query: url
|
||||
content_query: snippet
|
||||
timeout: 1.5
|
||||
disabled: true
|
||||
about:
|
||||
website: https://alexandria.org/
|
||||
official_api_documentation: https://github.com/alexandria-org/alexandria-api/raw/master/README.md
|
||||
use_official_api: true
|
||||
require_api_key: false
|
||||
results: JSON
|
||||
|
||||
- name: alpine linux packages
|
||||
engine: alpinelinux
|
||||
disabled: true
|
||||
|
27
generate_hostnames_remove.py
Normal file
27
generate_hostnames_remove.py
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import urllib.request as request
|
||||
import re
|
||||
|
||||
HOSTS = "https://someonewhocares.org/hosts/zero/hosts"
|
||||
OUTPUT = "config/hostnames_remove.yml"
|
||||
|
||||
|
||||
def main():
|
||||
with request.urlopen(HOSTS) as i:
|
||||
with open(OUTPUT, "w+") as o:
|
||||
print(
|
||||
*sorted(
|
||||
[
|
||||
rf"- '(.*\.)?{re.escape(l.split()[1])}$'"
|
||||
for l in i.read().decode("utf-8").split("\n")
|
||||
if l.startswith("0")
|
||||
]
|
||||
),
|
||||
sep="\n",
|
||||
file=o,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Reference in New Issue
Block a user