[mirai-api-http]梗查询插件——GengSearch
- 
					
					
					
					
 @kott 试试用kill杀掉后台后再启动? 
- 
					
					
					
					
 之前还能用现在就报错 
 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 assignmentsave log 
 无法定位到搜索列表的首个词条ID
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 154, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 Error
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 166, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 save logListening…… 
- 
					
					
					
					
 @xuwu2 应该是登录过期了,换一个cookie 
- 
					
					
					
					
 @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 assignmentsave log 
 无法定位到搜索列表的首个词条ID
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 154, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 Error
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 166, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 save logListening…… 
- 
					
					
					
					
 @xuwu2 是不是开代理了? 
- 
					
					
					
					
 @Koreyoshi 
 还真是,关了就好了,感谢
- 
					
					
					
					
  
 这个是什么情况,重新装了插件也是这样
- 
					
					
					
					
 @2741911624 按照提示去安装那个dll文件 
- 
					
					
					
					
 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 assignmentsave log 
 无法定位到搜索列表的首个词条ID
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 154, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 Error
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 166, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 save logListening…… 
- 
					
					
					
					
 @loolksama 在 [mirai-api-http]梗查询插件——GengSearch 中说: UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 400: ordinal not in range(256) cookie信息不完整,可能没有复制完全 
- 
					
					
					
					
 @Koreyoshi 感谢 之前用Chrome控制台没获取完整 
- 
					
					
					
					
 大佬,遇到了问题: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 rangesave log 
 save logListening…… 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 rangesave log 
 save logListening…… 
 Searchlist.html如下: 
 出现问题后已经更新了cookie,仍然出现相同问题
 请问是什么情况?
- 
					
					
					
					
 @cold233 似乎是小鸡词典的网页更新过了,我的也用不了了 
- 
					
					
					
					
 @Koreyoshi 我也怀疑这个,但不确定是不是 
- 
					
					
					
					
 @cold233 看样子是改了 
- 
					
					
					
					
 @Koreyoshi 大佬,在云服务器运行闪退 
- 
					
					
					
					
 
- 
					
					
					
					
  
- 
					
					
					
					
 目前因为小鸡词典网页的更新,原爬虫代码不可用了,看我什么时候有时间再更新一下吧) 
- 
					
					
					
					
 @Koreyoshi 大哥,现在能用了吗 
 
			
		