Skip to content
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

how can i use bow.CookieJar() map to array? #111

Open
musicyin opened this issue Nov 29, 2018 · 0 comments
Open

how can i use bow.CookieJar() map to array? #111

musicyin opened this issue Nov 29, 2018 · 0 comments

Comments

@musicyin
Copy link

musicyin commented Nov 29, 2018

When i call bow.CookieJar() , it will return a map that have cookie domain, key , value, secure, httponly, expire, path.
How can I convert the cookie jar to array?
For example,
array[0]['domain'] = "example.com"
array[0]['httpOnly'] = False
array[0]['name'] = "SameOfCookieKey"
array[0]['value'] = "SameOfCookieValue"
array[0]['path'] = "/"
array[0]['expire'] = "123123213123"
array[0]['secure'] = False

I knew that there is a bow.SiteCookies() function but it only return key and value.
For some reason , I want to use all of these to addcookie on selenium and the website should work after that.
Sorry for my bad english

backwardn pushed a commit to backwardn/surf that referenced this issue Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant