Comments (10)
They just added a challenge at the main page :
I believe all unofficial APIs are now down ...
`
<title>Just a moment...</title><div class="footer" role="contentinfo">
<div class="footer-inner">
<div class="clearfix diagnostic-wrapper">
<div class="ray-id">Ray ID: <code>77816379cc6722a3</code></div>
</div>
<div class="text-center">Performance & security by <a rel="noopener noreferrer" href="https://www.cloudflare.com?utm_source=challenge&utm_campaign=m" target="_blank">Cloudflare</a></div>
</div>
</div>
from pychatgpt.
as reported here
It's to do with and their (new) cloudflare hCaptcha implementation. Once you pass the security check, the browser stores a cf_clearance cookie which has a 1-year expiration. If this cookie is missing, even if you have a valid session/access token you will need to pass the security check again before accessing the website.
from pychatgpt.
see also this issue to follow the ongoing discussions on solutions
from pychatgpt.
Hi. A temporary bypass using undetected_chromedriver
is added to the new release v0.2.0.
This library now requires a Chrome installation. Please check and let me know if you have any questions.
from pychatgpt.
Hi. A temporary bypass using
undetected_chromedriver
is added to the new release v0.2.0. This library now requires a Chrome installation. Please check and let me know if you have any questions.
Works fine - only thing that would be lovely is when it would close the browser afterwards.
When i call it via my bot it let the browser stay open.
from pychatgpt.
Hi. A temporary bypass using
undetected_chromedriver
is added to the new release v0.2.0. This library now requires a Chrome installation. Please check and let me know if you have any questions.Works fine - only thing that would be lovely is when it would close the browser afterwards. When i call it via my bot it let the browser stay open.
Unfortunately, the browser window is required as Cloudflare will detect headless browser and the bypass will not work.
from pychatgpt.
Hi. A temporary bypass using
undetected_chromedriver
is added to the new release v0.2.0. This library now requires a Chrome installation. Please check and let me know if you have any questions.Works fine - only thing that would be lovely is when it would close the browser afterwards. When i call it via my bot it let the browser stay open.
Unfortunately, the browser window is required as Cloudflare will detect headless browser and the bypass will not work.
I mean after the whole process is finished - the browser still stays open i mean something like self.driver.quit() after everything is done
from pychatgpt.
I mean after the whole process is finished - the browser still stays open i mean something like self.driver.quit() after everything is done
That is achievable. But as we are ensuring auth when using send_message()
, it means that we are going to init a new browser instance every time. That may be a little bit time consuming.
But if you dont mind, I can change that in the code.
pyChatGPT/src/pyChatGPT/pyChatGPT.py
Line 136 in 441f714
from pychatgpt.
I mean after the whole process is finished - the browser still stays open i mean something like self.driver.quit() after everything is done
That is achievable. But as we are ensuring auth every time when sending message, it means that we are going to init a new browser instance when using
send_message()
. That may be a little bit time consuming. But if you dont mind, I can change that in the code.pyChatGPT/src/pyChatGPT/pyChatGPT.py
Line 136 in 441f714
I just added self.driver.quit() in line 150 before it returns the msg - that will close the browser everytime and reopen a new session when i ask a new question ( actual use it in a discord bot )
Thanks alot for supporting terry!
from pychatgpt.
I just added self.driver.quit() in line 150 before it returns the msg - that will close the browser everytime and reopen a new session when i ask a new question ( actual use it in a discord bot ) Thanks alot for supporting terry!
I have pushed version v0.2.3 to reduce the browser pop-up frequency. Please have a look and let me know if you have any questions.
from pychatgpt.
Related Issues (20)
- chatgpt plus: can we use pychatgpt? HOT 1
- pyChatGPT doesn't work for edge.
- pychatgpt doesn't work for two response
- pychatgpt doesn't work for two response in last version
- today pyChatgpt not working anymore ... HOT 5
- anyone help this problem
- how to use pychatgpt by email and password without cash
- TimeoutException HOT 18
- python example wrapper with 'python3 -m pyChatGPT' ?
- Login button update?
- Crash on session_token = chatgptapi ----- api = ChatGPT(session_token)
- GRPC error HOT 1
- response['message'] could not get the returned data HOT 10
- 'NoneType' object has no attribute 'group' HOT 2
- Made a library that has a similar structure to this library, but is maintained and improved
- help:list index out of range HOT 2
- Add a support for system prompts
- list index out of range
- do not work HOT 3
- version chrome_driver problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pychatgpt.