Michelangelo27 / chatgpt_selenium_automation

MIT License
105 stars 37 forks source link

ModuleNotFoundError: No module named 'handler' #6

Closed ishandutta2007 closed 5 months ago

ishandutta2007 commented 7 months ago

First i did:

pip install ChatGPTAutomation

then in python the example code.

from handler.chatgpt_selenium_automation import ChatGPTAutomation
chrome_driver_path = r"/Users/ishandutta2007/Documents/chrome-mac-arm64/Google Chrome for Testing.app"
chrome_path = r'"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"'
chatgpt = ChatGPTAutomation(chrome_path, chrome_driver_path)
prompt = "What are the benefits of exercise?"
chatgpt.send_prompt_to_chatgpt(prompt)
response = chatgpt.return_last_response()
file_name = "conversation.txt"
chatgpt.save_conversation(file_name)
chatgpt.quit()
Michelangelo27 commented 5 months ago

Hi, u have to clone the repo, it's not a pip library.

ishandutta2007 commented 5 months ago

Sorry my bad intended to create a ticket for https://github.com/iamseyedalipro/ChatGPTAutomation Thanks