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

[Question] how do you traverse or search through the cookies and also where is it tmp cookies located #86

Open
JunkyardCat opened this issue May 15, 2021 · 1 comment

Comments

@JunkyardCat
Copy link

hi so may i ask how do you traverse through the cookies retrieved by this code and also i read that this creates a temp file to avoid lockout. where is this file so i can check if it is already deleted after i get my the things i want in my cookies

I just want to be able to get the 2 things inside the cookie but unsure what is best way to do this

@yes-0001
Copy link

you can do this:

try:
    cookies = browser_cookie3.chromium(domain_name='xxx.com')
    for cookie in cookies:
        if cookie.name == 'xxxx':
            print(cookies) # the full cookie
            print("\n" + cookie.value) # whatever is under xxxx
except:
    pass

that's what I use <3
sorry that it took 8 months for someone to finally respond to you xd

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

2 participants