whatsappmessagepython icon indicating copy to clipboard operation
whatsappmessagepython copied to clipboard

Keep me signed in

Open Nemo1710 opened this issue 5 years ago • 6 comments

Please, why it doesn't save the session? it's posible to give a configuration to avoid QR registration whatsapp every time?

Nemo1710 avatar Jun 15 '19 15:06 Nemo1710

@Nemo1710 Did you find a solution?

siddas27 avatar Feb 11 '20 09:02 siddas27

Use below code for your problem: saving cookies

import pickle
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://www.web.whatsapp.com')
# Before of driver close
pickle.dump(driver.get_cookies() , open("WhatsappCookies.pkl","wb"))
driver.close()

loading cookies

import pickle
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://www.quora.com')
for cookie in pickle.load(open("WhatsappCookies.pkl", "rb")):
    driver.add_cookie(cookie)

ManivannanIkomet avatar Feb 14 '20 06:02 ManivannanIkomet

this is not resolving the issue

ThatOneTallKid avatar Apr 05 '20 10:04 ThatOneTallKid

i am using chrome browser but still it is telling me to sign in

ThatOneTallKid avatar Apr 05 '20 10:04 ThatOneTallKid

Let you know, once I completed

On Sun, 5 Apr, 2020, 3:53 PM adirups285, [email protected] wrote:

i am using chrome browser but still it is telling me to sign in

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ManivannanMurugavel/whatsappmessagepython/issues/3#issuecomment-609393443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5POGULPEIFQLTZVR2YTA3RLBL2NANCNFSM4HYPGUZA .

ManivannanMurugavel avatar Apr 05 '20 10:04 ManivannanMurugavel