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

Load cookies from alternative Google Chrome profiles #76

Open
ghost opened this issue Apr 6, 2021 · 2 comments
Open

Load cookies from alternative Google Chrome profiles #76

ghost opened this issue Apr 6, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 6, 2021

This library is super useful however it seems to be completely unable to retrieve cookies from alternative Google Chrome profiles. As someone who separates private and work browsing using Google Chrome's profile system this feature would be very much appreciated.

While ideally I would be able to select which profile this library selects I would appreciate just checking all profiles when the user requests cookies from all compatible browsers.

Thanks for the development!

@zeddrr
Copy link

zeddrr commented Jul 11, 2022

Is there anything new on this?
That would be a great option! Many thanks for your work!

@rafiibrahim8
Copy link
Collaborator

Hi @zeddrr,
This feature needs to be discussed with the owner of the project. In the meantime, you can use cookie_file parameter of the browser functions.

For example, if you want to load Profile 2 on Linux you can use:

import browser_cookie3

cookies = browswer_cookie3.chrome(cookie_file='~/.config/google-chrome/Profile 2/Cookies')

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