diff options
| author | Bnyro <bnyro@tutanota.com> | 2026-07-29 17:11:53 +0200 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-07-30 14:54:39 +0200 |
| commit | a449518ed410407e9bebefcf45efca50a880d722 (patch) | |
| tree | f94a1f595876489ef2497b1f50297963b82b9e23 /searx/engines/bilibili.py | |
| parent | 702f702f9b526c94049113dd33a0b4cf8ea0e116 (diff) | |
[mod] engines: replace [random.choice(...) for ... in range(..)] with random.choices
Diffstat (limited to 'searx/engines/bilibili.py')
| -rw-r--r-- | searx/engines/bilibili.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/bilibili.py b/searx/engines/bilibili.py index 9168bf733..dbd7c6bea 100644 --- a/searx/engines/bilibili.py +++ b/searx/engines/bilibili.py @@ -32,7 +32,7 @@ base_url = "https://api.bilibili.com/x/web-interface/search/type" cookie = { "innersign": "0", - "buvid3": "".join(random.choice(string.hexdigits) for _ in range(16)) + "infoc", + "buvid3": "".join(random.choices(string.hexdigits, k=16)) + "infoc", "i-wanna-go-back": "-1", "b_ut": "7", "FEED_LIVE_VERSION": "V8", |
