forked from Extravi/araa-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.py
52 lines (45 loc) · 1.98 KB
/
_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# The char used to denote bangs (see below constant).
# EG BANG='!': "!ddg cats" will search "cats" on DuckDuckGo.
BANG = '!'
# Search engine bangs for ppl who want to use another engine through TailsX's
# search bar.
# NOTE: Bangs are case insensitive!
# NOTE: The first brackets, "{}", is where the query will be put in the final URL.
# TODO: Bangs will ONLY redirect to TEXT results (type is dropped); maybe change this?
SEARCH_BANGS = [
{'bang': 'g', 'url': 'https://www.google.com/search?q={}'},
{'bang': 'ddg', 'url': 'https://duckduckgo.com/?q={}'},
{'bang': 'brave', 'url': 'https://search.brave.com/search?q={}'},
{'bang': 'bing', 'url': 'https://www.bing.com/search?q={}'},
]
# The repository this instance is based off on.
REPO='https://github.com/Extravi/tailsx'
# Default theme
DEFAULT_THEME = 'dark_blur'
# The port for this server to listen on
PORT = 8000
# Useragents to use in the request.
user_agents = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15",
]
# prompts for user agent & ip queries
VALID_IP_PROMPTS = [
"what is my ip",
"what is my ip address",
"what's my ip",
"whats my ip"
]
VALID_UA_PROMPTS = [
"what is my user agent",
"what is my useragent",
"whats my useragent",
"whats my user agent",
"what's my useragent",
"what's my user agent",
]
COOKIE_AGE = 2147483647