你好,
感谢你的工作
我尝试使用你的方法访问chatgpt,在登录之后弹出对话界面的一瞬间关掉代理,但是他当前页面仍然会关掉,并且会重新再次打开验证和登录页面,然后程序就会报错。不知道是我关闭代理的时机不正确,还是怎么回事呢?
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main)
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 390, in get_cf_cookies raise Exception("cf challenge fail")
Exception: cf challenge fail
PS E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main> python .\app.py
Traceback (most recent call last):
File "E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main\app.py", line 1, in
from bbot import run
File "E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main\bbot.py", line 10, in
chatbot = Chatbot({})
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 116, in init
self.refresh_session()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 323, in refresh_session
asyncio.run(self.get_cf_cookies())
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 390, in get_cf_cookies
raise Exception("cf challenge fail")
Exception: cf challenge fail
你好, 感谢你的工作 我尝试使用你的方法访问chatgpt,在登录之后弹出对话界面的一瞬间关掉代理,但是他当前页面仍然会关掉,并且会重新再次打开验证和登录页面,然后程序就会报错。不知道是我关闭代理的时机不正确,还是怎么回事呢? File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 390, in get_cf_cookies raise Exception("cf challenge fail") Exception: cf challenge fail PS E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main> python .\app.py Traceback (most recent call last): File "E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main\app.py", line 1, in
from bbot import run
File "E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main\bbot.py", line 10, in
chatbot = Chatbot({})
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 116, in init
self.refresh_session()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 323, in refresh_session
asyncio.run(self.get_cf_cookies())
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 390, in get_cf_cookies
raise Exception("cf challenge fail")
Exception: cf challenge fail