Giter Site home page Giter Site logo

nonebot_plugin_bittorrent's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nonebot_plugin_bittorrent's Issues

启动报错

06-19 11:40:09 [ERROR] nonebot | Failed to import "nonebot_plugin_BitTorrent"
Traceback (most recent call last):
File "", line 14, in
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\plugin\load.py", line 125, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\plugin\load.py", line 62, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\plugin\manager.py", line 175, in load_all_plugins
return set(
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\plugin\manager.py", line 176, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\plugin\manager.py", line 240, in exec_module
super().exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\cyy19\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot_plugin_BitTorrent_init
.py", line 9, in
plugin_meta = PluginMetadata(
TypeError: PluginMetadata.init() got an unexpected keyword argument 'type'

【报错】无法获取消息

python3.9.12,nonebot2=2.0.0b4
nonebot_adapter_onebot = 2.1.0
bs4=0.0.1
httpx =0.23.0
asyncio =3.4.3
第一次搜索会报错上面那个,之后都是下面那个报错
以尝试更换n次cookie,也尝试更换user-agent均无用,中间空的那行是最后print,log大法也没有任何异常。
image

终端显示

07-04 17:18:04 [SUCCESS] nonebot | ONEBOT V11 3458139180 | [message.group.normal]: Message -849076481 from 735803792@[群:1040674922] "磁力搜索 葫芦娃"
07-04 17:18:04 [INFO] nonebot | Event will be handled by <Matcher from nonebot_plugin_BitTorrent, type=message, priority=10, temp=False>

07-04 17:18:59 [INFO] nonebot | Matcher <Matcher from nonebot_plugin_BitTorrent, type=message, priority=10, temp=False> running complete

网址访问不了

磁力猫好像墙了,我只有挂代理才能登上哎,加个代理设置吧

小建议

磁力猫经常无法访问,可以考虑添加多个网址,或者添加一个用户自定义网站的功能(改代码太麻烦了bushi),多条用消息合并转发或许会更好。

磁力猫的cookie与user-agent可能都需重新设置

照最开始的建议只修改cookie并不生效,仍然会有验证的界面,后面观察了下请求头,我把原来的
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.44
改成了我的
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.50
这样就生效了能够正常访问页面了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.