summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorta <alt3753.7@gmail.com>2022-08-17 19:45:42 +0700
committerta <alt3753.7@gmail.com>2022-08-17 19:45:42 +0700
commit05851978cfecb987852d0c6244df7cecc9bfb7b8 (patch)
tree035cb8df01915b055bcf4082756ebc6c3f2410ee /searx/engines
parentc8acd4a3b6a664e0080ba6d5aebe0466dce54557 (diff)
downloadsearxng-05851978cfecb987852d0c6244df7cecc9bfb7b8.tar.gz
searxng-05851978cfecb987852d0c6244df7cecc9bfb7b8.zip
add explanation of token
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/twitter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/twitter.py b/searx/engines/twitter.py
index b6eef0461..3ebe34be1 100644
--- a/searx/engines/twitter.py
+++ b/searx/engines/twitter.py
@@ -27,6 +27,8 @@ def request(query, params):
params['url'] = search_url.format(url=url, query=urlencode({'q': query}))
params['headers'] = {
+ # This token is used in the Twitter web interface (twitter.com). Without this header, the API doesn't work.
+ # The value of the token has never changed (or maybe once a long time ago).
# https://github.com/zedeus/nitter/blob/5f31e86e0e8578377fa7d5aeb9631bbb2d35ef1e/src/consts.nim#L5
'Authorization': (
"Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKb"