from selenium import webdriver
from selenium.webdriver.chrome.options import Options
settings =Options()
settings.add_argument("user-data-dir=./whatsapp_profile")
driver = webdriver.Chrome(options=settings)
print ("it ececuate further")
website= "https://web.whatsapp.com/"
driver.get(website)* I don't even know the python basics. but with the help of our friendly dumb llm claude i am trying to make this number extractor.
* So selenium was working properly and opening whatsapp.web automatically but every time i run the code, I had to scan the WhatsApp web qr code again and again.
So Claude said to use the Options function and add code lines 2, 3, 4, 5, hoping it will save the Chrome session in a folder. So next time I go to WhatsApp web, I won't have to scan the QR. But Now Code executes up to line 5 and never reaches that print function on the 6th line. And it also doesn't open WhatsApp web anymore.
What do i do?
How do I solve the problem of scanning QR on every new code run?
Would anyone be kind enough to guide me through this project as a mentor in dm's, please. LLM's are dumb and asking them is a waste of time, but i don't have another option.