MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    [mirai-api-http]梗查询插件——GengSearch

    插件发布
    python mirai-api-http
    25
    182
    36420
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Koreyoshi
      Koreyoshi @superen last edited by

      @superen 这个可以修改参数哇,在seting.json文件里面

      S 1 Reply Last reply Reply Quote 0
      • S
        superen @Koreyoshi last edited by

        @koreyoshi 刚没看到消息( ok啦 谢谢你啦

        Koreyoshi 1 Reply Last reply Reply Quote 0
        • Koreyoshi
          Koreyoshi @superen last edited by

          @superen 嗯嗯!没事

          1 Reply Last reply Reply Quote 0
          • daisy524
            daisy524 last edited by

            错误详情:
            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?
            老哥这个怎么解决

            Koreyoshi 1 Reply Last reply Reply Quote 0
            • Koreyoshi
              Koreyoshi @daisy524 last edited by

              @daisy524 linux么,用pip装个lxml库吧
              pip install lxml

              daisy524 1 Reply Last reply Reply Quote 0
              • daisy524
                daisy524 @Koreyoshi last edited by

                @koreyoshi 装了,pip list也能看到,不过依然报错。。。

                Koreyoshi 1 Reply Last reply Reply Quote 0
                • Koreyoshi
                  Koreyoshi @daisy524 last edited by

                  @daisy524 把目录下的lxml文件夹删了试试?

                  daisy524 1 Reply Last reply Reply Quote 0
                  • daisy524
                    daisy524 @Koreyoshi last edited by

                    @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删了,结果也不行

                    Koreyoshi 2 Replies Last reply Reply Quote 0
                    • Koreyoshi
                      Koreyoshi @daisy524 last edited by

                      @daisy524 这个报错不是lxml库的问题,是权限的问题,没有给wkhtmltoimage这个文件权限,用chmod指令试试

                      Koreyoshi daisy524 2 Replies Last reply Reply Quote 0
                      • Koreyoshi
                        Koreyoshi @Koreyoshi last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • Koreyoshi
                          Koreyoshi @daisy524 last edited by

                          @daisy524 要是出现oserror的话试试去官网下rpm包安装把我目录下的替换了吧,可能是我强解包的问题

                          1 Reply Last reply Reply Quote 0
                          • daisy524
                            daisy524 @Koreyoshi last edited by

                            @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没爬到?

                            Koreyoshi 1 Reply Last reply Reply Quote 0
                            • Koreyoshi
                              Koreyoshi @daisy524 last edited by

                              @daisy524 网站的问题吧,那边会限制访问次数的,可以用浏览器看看temp里的几个html文件是出现了什么提示

                              daisy524 1 Reply Last reply Reply Quote 0
                              • daisy524
                                daisy524 @Koreyoshi last edited by

                                @koreyoshi temp里保存的html是正常的,我先删了重新下载一遍试试

                                Koreyoshi 1 Reply Last reply Reply Quote 0
                                • Koreyoshi
                                  Koreyoshi @daisy524 last edited by

                                  @daisy524 要不qq加下我?比较方便一点,1121917292

                                  1 Reply Last reply Reply Quote 0
                                  • Koreyoshi
                                    Koreyoshi last edited by

                                    2022.2.10更新
                                    去除了Linux版本中的wkhtmltopdf
                                    README更新了对Linux的安装说明

                                    1 Reply Last reply Reply Quote 0
                                    • 月
                                      月森优姬 last edited by

                                      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 assignment

                                      save log
                                      save log

                                      Listening……

                                      出现了看不懂的错误……

                                      Koreyoshi 1 Reply Last reply Reply Quote 0
                                      • Koreyoshi
                                        Koreyoshi @月森优姬 last edited by

                                        @月森优姬 在目录下创建一个temp文件夹,这个被你删了吧

                                        月 1 Reply Last reply Reply Quote 0
                                        • 月
                                          月森优姬 @Koreyoshi last edited by

                                          @koreyoshi 是我搞错了,我之前一直以为是mirai\temp,在GengSearch.Windows里创建temp之后可以正常使用了,感谢

                                          Koreyoshi 1 Reply Last reply Reply Quote 0
                                          • Koreyoshi
                                            Koreyoshi @月森优姬 last edited by

                                            @月森优姬 嗯嗯

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 5 / 10
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact