ManivannanMurugavel / whatsappmessagepython

20 stars 12 forks source link

Keep me signed in #3

Open Nemo1710 opened 5 years ago

Nemo1710 commented 5 years ago

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

siddas27 commented 4 years ago

@Nemo1710 Did you find a solution?

ManivannanMurugavel commented 4 years ago

Try to solving.. .

On Tue, 11 Feb, 2020, 2:35 PM Siddharth Das, notifications@github.com wrote:

@Nemo1710 https://github.com/Nemo1710 Did you find a solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ManivannanMurugavel/whatsappmessagepython/issues/3?email_source=notifications&email_token=AE5POGXNE2GA7JE3TJR765DRCJS4BA5CNFSM4HYPGUZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLUZSY#issuecomment-584535243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5POGTKBCYCNHVV6BNU3GTRCJS4BANCNFSM4HYPGUZA .

ManivannanIkomet commented 4 years ago

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)
ThatOneTallKid commented 4 years ago

this is not resolving the issue

ThatOneTallKid commented 4 years ago

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

ManivannanMurugavel commented 4 years ago

Let you know, once I completed

On Sun, 5 Apr, 2020, 3:53 PM adirups285, notifications@github.com 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 .