Free chatgpt4 with Selenium
Ensure you have Chrome installed
Start it with the given command to enable remote debugging.
Windows:
- "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9998 --user-data-dir=openai
You can send a POST request with a different question payload to http://127.0.0.1:5001/ricevi_domanda to get an answer
- curl -X POST -H "Content-Type: application/json" -d "{"domanda":"ciao come stai?"}" http://127.0.0.1:5001/ricevi_domanda
The script can be used as an automated system to pose questions to a web-based chatbot and obtain answers.
If you're developing or testing a web-based chat system, this script can be a tool to automatically pose questions and verify the responses.
You can modify the script to send a series of questions and collect answers, which can then be used for data analysis or training machine learning models.