[mirai-api-http]梗查询插件——GengSearch
-
@superen 这个可以修改参数哇,在seting.json文件里面
-
@koreyoshi 刚没看到消息( ok啦 谢谢你啦
-
@superen 嗯嗯!没事
-
错误详情:
Traceback (most recent call last):
File "./GengSearch.py", line 132, in Search
soup = BeautifulSoup(infolist, "lxml")
File "/home/daisy/plugins/梗查询/bs4/init.py", line 248, in init
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
老哥这个怎么解决 -
@daisy524 linux么,用pip装个lxml库吧
pip install lxml -
@koreyoshi 装了,pip list也能看到,不过依然报错。。。
-
@daisy524 把目录下的lxml文件夹删了试试?
-
@koreyoshi html转换图片错误
错误详情:
Traceback (most recent call last):
File "./GengSearch.py", line 166, in Search
imgkit.from_file('temp/Searchinfo.html', 'temp/Searchinfo_img.jpg', config=cfg)
File "/home/venv/lib/python3.6/site-packages/imgkit/api.py", line 72, in from_file
return rtn.to_img(output_path)
File "/home/venv/lib/python3.6/site-packages/imgkit/imgkit.py", line 225, in to_img
stderr=subprocess.PIPE,
File "/usr/lib64/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'wkhtmltopdf/local/bin/wkhtmltoimage'
删掉lxml又报这个。。。。imgkit我也安装了,我还打算故技重施把imgkit删了,结果也不行 -
@daisy524 这个报错不是lxml库的问题,是权限的问题,没有给wkhtmltoimage这个文件权限,用chmod指令试试
-
此回复已被删除! -
-
@koreyoshi 每次感觉要成功了,就会出现船新版本的报错。。
错误详情:
Traceback (most recent call last):
File "./GengSearch.py", line 133, in Search
title=soup.select('.title-container')[0]
IndexError: list index out of range
这次是网站的问题吗,bs4没爬到? -
@daisy524 网站的问题吧,那边会限制访问次数的,可以用浏览器看看temp里的几个html文件是出现了什么提示
-
@koreyoshi temp里保存的html是正常的,我先删了重新下载一遍试试
-
@daisy524 要不qq加下我?比较方便一点,1121917292
-
2022.2.10更新
去除了Linux版本中的wkhtmltopdf
README更新了对Linux的安装说明 -
Listening……
Get mission
搜索列表保存错误
错误详情:
Traceback (most recent call last):
File "GengSearch.py", line 128, in Search
FileNotFoundError: [Errno 2] No such file or directory: 'temp/Searchlist.html'save log
Searchid: 248461677
infoUrl: https://jikipedia.com/definition/248461677
head文件保存失败
错误详情:
Traceback (most recent call last):
File "GengSearch.py", line 166, in Search
FileNotFoundError: [Errno 2] No such file or directory: 'temp/head.html'save log
未找到head文件
错误详情:
Traceback (most recent call last):
File "GengSearch.py", line 188, in Search
FileNotFoundError: [Errno 2] No such file or directory: 'temp/head.html'save log
Error
错误详情:
Traceback (most recent call last):
File "GengSearch.py", line 194, in Search
UnboundLocalError: local variable 'head' referenced before assignmentsave log
save logListening……
出现了看不懂的错误……
-
@月森优姬 在目录下创建一个temp文件夹,这个被你删了吧
-
@koreyoshi 是我搞错了,我之前一直以为是mirai\temp,在GengSearch.Windows里创建temp之后可以正常使用了,感谢
-
@月森优姬 嗯嗯