You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go list -m github.com/chromedp/chromedpgithub.com/chromedp/chromedp v0.8.5
$ google-chrome --versionVersion 104.0.5112.101 (Official Build) (x86_64)
$ go versiongo version go1.19 darwin/amd64
What did you do? Include clear steps.
The site Im trying to scrape asks to sign in and then confirm phone number. This happens every time I start scraping.
putyoursourcecodehere
What did you expect to see?
I expect it to retain login session/cookies/user data so that I dont need to sign in or verify my phone number again.
What did you see instead?
It asks chromedp to sign in again.
I want to avoid this by retaining whatever session/cookies/user data. Can you please tell me how do I do this? I want to avoid this by retaining whatever session/cookies/user data. Can you please tell me how do I do this?
The text was updated successfully, but these errors were encountered:
I saw that question before but I was not sure whether chromedp's default behaviour is to save cookies/session/user data even after closing the program?
As shown in #818, you have to do two things to persistent user data:
Use chromedp.UserDataDir to specify the directory to store/restore the user data. If you don't do this, chromedp will store the data to a temporary directory and remove the directory after the brower exits.
Call chromedp.Cancel to gracefully close the browser so that the browser has the time to save any unsaved user data.
What versions are you running?
What did you do? Include clear steps.
The site Im trying to scrape asks to sign in and then confirm phone number. This happens every time I start scraping.
What did you expect to see?
I expect it to retain login session/cookies/user data so that I dont need to sign in or verify my phone number again.
What did you see instead?
It asks chromedp to sign in again.
I want to avoid this by retaining whatever session/cookies/user data. Can you please tell me how do I do this? I want to avoid this by retaining whatever session/cookies/user data. Can you please tell me how do I do this?
The text was updated successfully, but these errors were encountered: