mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(lightnovel): 尝试修复轻小说推荐功能
This commit is contained in:
parent
6d6966f1b3
commit
b979dfeb1d
1 changed files with 2 additions and 4 deletions
|
|
@ -11,8 +11,7 @@ index_url = 'https://www.wenku8.net/index.php'
|
||||||
headers = {
|
headers = {
|
||||||
'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
|
'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
|
||||||
'Connection': 'close',
|
'Connection': 'close',
|
||||||
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0',
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.41',
|
||||||
'Upgrade-Insecure-Requests': '1'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 登录表单数据
|
# 登录表单数据
|
||||||
|
|
@ -52,8 +51,7 @@ async def get_books():
|
||||||
cookie = f.read()
|
cookie = f.read()
|
||||||
headers1 = {
|
headers1 = {
|
||||||
'Connection': 'close',
|
'Connection': 'close',
|
||||||
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0',
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.41',
|
||||||
'Upgrade-Insecure-Requests': '1',
|
|
||||||
'Cookie': cookie
|
'Cookie': cookie
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue