-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set and Get Cookies #236
Comments
@advancedlogic currently Ferret uses Incognito window for each query, that's why none of data gets persisted. But it should be okay in between transitions within a single query. We might consider to pass extra params to the CDP driver in order to change the behavior and use regular windows. |
I understand the incognito mode’s choice but it would be great to set cookies (getting the cookies and storing them somewhere after the 1st login)to avoid logging in every time with the risk of being banned. |
@advancedlogic hey, the cookie support has landed on master branch.
|
Let me know how it works in your case. I would like to make it stable for v0.7 release. |
thanks :) |
* Added KeepCookies option to CDP driver * Added LoadDocumentParams * Added COOKIE_GET and COOKIE_SET methods
author Tim Voronov <[email protected]> 1552622815 -0400 committer Владимир Фетисов <[email protected]> 1554919032 +0300 parent b45f889 author Tim Voronov <[email protected]> 1552622815 -0400 committer Владимир Фетисов <[email protected]> 1554919029 +0300 Updated style template Feature/MontFerret#236 cookies (MontFerret#242) * Added KeepCookies option to CDP driver * Added LoadDocumentParams * Added COOKIE_GET and COOKIE_SET methods Updated CHANGELOG Updated nav example fix order of arguments (MontFerret#269) Updated RAND function (MontFerret#271) * Updated RAND function * renamed a func Linter Cleanup (MontFerret#276) * linter cleanup * fix default case Bump github.com/mafredri/cdp from 0.22.0 to 0.23.0 (MontFerret#278) Bumps [github.com/mafredri/cdp](https://github.com/mafredri/cdp) from 0.22.0 to 0.23.0. - [Release notes](https://github.com/mafredri/cdp/releases) - [Commits](mafredri/cdp@v0.22.0...v0.23.0) Signed-off-by: dependabot[bot] <[email protected]> fix diff
* Added KeepCookies option to CDP driver * Added LoadDocumentParams * Added COOKIE_GET and COOKIE_SET methods
author Tim Voronov <[email protected]> 1552622815 -0400 committer Владимир Фетисов <[email protected]> 1554919032 +0300 parent b45f889 author Tim Voronov <[email protected]> 1552622815 -0400 committer Владимир Фетисов <[email protected]> 1554919029 +0300 Updated style template Feature/MontFerret#236 cookies (MontFerret#242) * Added KeepCookies option to CDP driver * Added LoadDocumentParams * Added COOKIE_GET and COOKIE_SET methods Updated CHANGELOG Updated nav example fix order of arguments (MontFerret#269) Updated RAND function (MontFerret#271) * Updated RAND function * renamed a func Linter Cleanup (MontFerret#276) * linter cleanup * fix default case Bump github.com/mafredri/cdp from 0.22.0 to 0.23.0 (MontFerret#278) Bumps [github.com/mafredri/cdp](https://github.com/mafredri/cdp) from 0.22.0 to 0.23.0. - [Release notes](https://github.com/mafredri/cdp/releases) - [Commits](mafredri/cdp@v0.22.0...v0.23.0) Signed-off-by: dependabot[bot] <[email protected]> fix diff
In case of login into a website it would be helpful to get the cookies and reuse them to control the session (avoiding to login every time)
The text was updated successfully, but these errors were encountered: