MiraiForum

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

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

    插件发布
    python mirai-api-http
    25
    182
    36505
    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 @kott last edited by

      @kott 试试用kill杀掉后台后再启动?

      1 Reply Last reply Reply Quote 0
      • X
        xuwu2 last edited by

        之前还能用现在就报错
        Listening……
        Get mission
        搜索请求错误/超时
        错误详情:
        Traceback (most recent call last):
        File "urllib3\connectionpool.py", line 696, in urlopen
        File "urllib3\connectionpool.py", line 964, in prepare_proxy
        File "urllib3\connection.py", line 364, in connect
        File "urllib3\connection.py", line 501, in connect_tls_proxy
        File "urllib3\util\ssl
        .py", line 453, in ssl_wrap_socket
        File "urllib3\util\ssl
        .py", line 495, in _ssl_wrap_socket_impl
        File "ssl.py", line 500, in wrap_socket
        File "ssl.py", line 1040, in _create
        File "ssl.py", line 1309, in do_handshake
        ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
        File "requests\adapters.py", line 439, in send
        File "urllib3\connectionpool.py", line 755, in urlopen
        File "urllib3\util\retry.py", line 574, in increment
        urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jikipedia.com', port=443): Max retries exceeded with url: /search?phrase=%20&category=definition (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
        File "GengSearch.py", line 138, in Search
        File "requests\api.py", line 75, in get
        File "requests\api.py", line 61, in request
        File "requests\sessions.py", line 542, in request
        File "requests\sessions.py", line 655, in send
        File "requests\adapters.py", line 514, in send
        requests.exceptions.SSLError: HTTPSConnectionPool(host='jikipedia.com', port=443): Max retries exceeded with url: /search?phrase=%20&category=definition (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

        save log
        搜索列表保存错误
        错误详情:
        Traceback (most recent call last):
        File "GengSearch.py", line 148, in Search
        UnboundLocalError: local variable 'Searchlist' referenced before assignment

        save log
        无法定位到搜索列表的首个词条ID
        错误详情:
        Traceback (most recent call last):
        File "GengSearch.py", line 154, in Search
        UnboundLocalError: local variable 'Searchlist' referenced before assignment

        save log
        Error
        错误详情:
        Traceback (most recent call last):
        File "GengSearch.py", line 166, in Search
        UnboundLocalError: local variable 'Searchlist' referenced before assignment

        save log
        save log

        Listening……

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

          @xuwu2 应该是登录过期了,换一个cookie

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

            @Koreyoshi 不行还是报错,重新下载重新配置也还是报错
            Listening……
            Get mission
            搜索请求错误/超时
            错误详情:
            Traceback (most recent call last):
            File "urllib3\connectionpool.py", line 696, in urlopen
            File "urllib3\connectionpool.py", line 964, in prepare_proxy
            File "urllib3\connection.py", line 364, in connect
            File "urllib3\connection.py", line 501, in connect_tls_proxy
            File "urllib3\util\ssl
            .py", line 453, in ssl_wrap_socket
            File "urllib3\util\ssl
            .py", line 495, in _ssl_wrap_socket_impl
            File "ssl.py", line 500, in wrap_socket
            File "ssl.py", line 1040, in _create
            File "ssl.py", line 1309, in do_handshake
            ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
            File "requests\adapters.py", line 439, in send
            File "urllib3\connectionpool.py", line 755, in urlopen
            File "urllib3\util\retry.py", line 574, in increment
            urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jikipedia.com', port=443): Max retries exceeded with url: /search?phrase=%20&category=definition (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
            File "GengSearch.py", line 138, in Search
            File "requests\api.py", line 75, in get
            File "requests\api.py", line 61, in request
            File "requests\sessions.py", line 542, in request
            File "requests\sessions.py", line 655, in send
            File "requests\adapters.py", line 514, in send
            requests.exceptions.SSLError: HTTPSConnectionPool(host='jikipedia.com', port=443): Max retries exceeded with url: /search?phrase=%20&category=definition (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

            save log
            搜索列表保存错误
            错误详情:
            Traceback (most recent call last):
            File "GengSearch.py", line 148, in Search
            UnboundLocalError: local variable 'Searchlist' referenced before assignment

            save log
            无法定位到搜索列表的首个词条ID
            错误详情:
            Traceback (most recent call last):
            File "GengSearch.py", line 154, in Search
            UnboundLocalError: local variable 'Searchlist' referenced before assignment

            save log
            Error
            错误详情:
            Traceback (most recent call last):
            File "GengSearch.py", line 166, in Search
            UnboundLocalError: local variable 'Searchlist' referenced before assignment

            save log
            save log

            Listening……

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

              @xuwu2 是不是开代理了?

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

                @Koreyoshi
                还真是,关了就好了,感谢

                1 Reply Last reply Reply Quote 0
                • 2
                  2741911624 last edited by

                  image.png
                  这个是什么情况,重新装了插件也是这样

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

                    @2741911624 按照提示去安装那个dll文件

                    1 Reply Last reply Reply Quote 0
                    • L
                      loolksama last edited by

                      Get mission
                      搜索请求错误/超时
                      错误详情:
                      Traceback (most recent call last):
                      File "GengSearch.py", line 138, in Search
                      File "requests\api.py", line 75, in get
                      File "requests\api.py", line 61, in request
                      File "requests\sessions.py", line 542, in request
                      File "requests\sessions.py", line 655, in send
                      File "requests\adapters.py", line 439, in send
                      File "urllib3\connectionpool.py", line 699, in urlopen
                      File "urllib3\connectionpool.py", line 394, in _make_request
                      File "urllib3\connection.py", line 239, in request
                      File "http\client.py", line 1257, in request
                      File "http\client.py", line 1298, in _send_request
                      File "urllib3\connection.py", line 224, in putheader
                      File "http\client.py", line 1230, in putheader
                      UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 400: ordinal not in range(256)

                      save log
                      搜索列表保存错误
                      错误详情:
                      Traceback (most recent call last):
                      File "GengSearch.py", line 148, in Search
                      UnboundLocalError: local variable 'Searchlist' referenced before assignment

                      save log
                      无法定位到搜索列表的首个词条ID
                      错误详情:
                      Traceback (most recent call last):
                      File "GengSearch.py", line 154, in Search
                      UnboundLocalError: local variable 'Searchlist' referenced before assignment

                      save log
                      Error
                      错误详情:
                      Traceback (most recent call last):
                      File "GengSearch.py", line 166, in Search
                      UnboundLocalError: local variable 'Searchlist' referenced before assignment

                      save log
                      save log

                      Listening……

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

                        @loolksama 在 [mirai-api-http]梗查询插件——GengSearch 中说:

                        UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 400: ordinal not in range(256)

                        cookie信息不完整,可能没有复制完全

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

                          @Koreyoshi 感谢 之前用Chrome控制台没获取完整

                          1 Reply Last reply Reply Quote 0
                          • C
                            cold233 last edited by

                            大佬,遇到了问题:Listening……
                            Get mission
                            Searchid: 230982967
                            infoUrl: https://jikipedia.com/definition/230982967
                            Error
                            错误详情:
                            Traceback (most recent call last):
                            File "./GengSearch.py", line 174, in Search
                            title=soup.select('.title-container')[0]
                            IndexError: list index out of range

                            save log
                            save log

                            Listening……

                            Get mission
                            Searchid: 230982967
                            infoUrl: https://jikipedia.com/definition/230982967
                            Error
                            错误详情:
                            Traceback (most recent call last):
                            File "./GengSearch.py", line 174, in Search
                            title=soup.select('.title-container')[0]
                            IndexError: list index out of range

                            save log
                            save log

                            Listening……
                            Searchlist.html如下:

                            image.png
                            出现问题后已经更新了cookie,仍然出现相同问题
                            请问是什么情况?

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

                              @cold233 似乎是小鸡词典的网页更新过了,我的也用不了了

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

                                @Koreyoshi 我也怀疑这个,但不确定是不是

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

                                  @cold233 看样子是改了

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

                                    @Koreyoshi 大佬,在云服务器运行闪退

                                    7 1 Reply Last reply Reply Quote 0
                                    • 7
                                      787352580 @787352580 last edited by

                                      @787352580 在 [mirai-api-http]梗查询插件——GengSearch 中说:

                                      @Koreyoshi 大佬,在云服务器运行闪退

                                      替代文字

                                      1 Reply Last reply Reply Quote 0
                                      • 2
                                        2741911624 last edited by

                                        image.png

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

                                          目前因为小鸡词典网页的更新,原爬虫代码不可用了,看我什么时候有时间再更新一下吧)

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

                                            @Koreyoshi 大哥,现在能用了吗

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