diff options
author | Kyomotoi <[email protected]> | 2020-04-28 20:37:45 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-04-28 20:37:45 +0800 |
commit | ad97a84075904e36acce2644166e00be53b3e120 (patch) | |
tree | c0ad04e225029b6cea23632d56dc45f37b84e517 /AyaBot/plugins/bilibilifan.py | |
parent | b33aba098aae9feafd77b56746b4ff5946c843cf (diff) | |
download | ATRI-ad97a84075904e36acce2644166e00be53b3e120.tar.gz ATRI-ad97a84075904e36acce2644166e00be53b3e120.tar.bz2 ATRI-ad97a84075904e36acce2644166e00be53b3e120.zip |
增加了一些琐碎的小配件
Diffstat (limited to 'AyaBot/plugins/bilibilifan.py')
-rw-r--r-- | AyaBot/plugins/bilibilifan.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/AyaBot/plugins/bilibilifan.py b/AyaBot/plugins/bilibilifan.py deleted file mode 100644 index 91a0bd4..0000000 --- a/AyaBot/plugins/bilibilifan.py +++ /dev/null @@ -1,29 +0,0 @@ -import requests -import json -from nonebot import on_command, CommandSession - - -@on_command('番剧索引') -async def _(session: CommandSession): - # url = 'https://api.bilibili.com/pgc/season/index/result?season_version=-1&area=-1&is_finish=-1©right=-1&season_status=-1&season_month=-1&year=-1&style_id=-1&order=3&st=1&sort=0&page=1&season_type=1&pagesize=20&type=1' - - res = requests.get( - 'https://api.bilibili.com/pgc/season/index/result?season_version=-1&area=-1&is_finish=-1©right=-1&season_status=-1&season_month=-1&year=-1&style_id=-1&order=3&st=1&sort=0&page=1&season_type=1&pagesize=20&type=1', - headers={ - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' - } - ) - - data = res.json() - print(['list']) - # JSON.data.list = data['JSON.data.list'] - # reply = '' - # for JSON.data.list in JSON.data.list: - # title = data.list['title'] - # url = data.list['link'] - # reply += f'\n{title}\n{url}' - # session.send('今日番剧索引如下: \n' + reply) - - # if not list: - # await session.send('暂时无法返回请求,或服务器变奇怪了...') - # return
\ No newline at end of file |