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

In version 0.18.0, I am unable to read the cookie folder associated with the currently logged-in Chrome account. It throws a permission error. #179

Closed
zhaotong1121 opened this issue Jun 9, 2023 · 2 comments

Comments

@zhaotong1121
Copy link

zhaotong1121 commented Jun 9, 2023

Here is the exception stack trace information.

Traceback (most recent call last):
File "D:\PyCharm 2022.2.1\plugins\python\helpers\pydev\pydevd.py", line 1496, in exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\PyCharm 2022.2.1\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/code/pythonOfVue/generalTxt.py", line 120, in
get_cookie()
File "D:/code/pythonOfVue/generalTxt.py", line 106, in get_cookie
jc = browser_cookie3.chrome(domain_name=url)
File "C:\Users\zhaot.virtualenvs\tradeCenterNx-kx4xaHRg\lib\site-packages\browser_cookie3_init
.py", line 973, in chrome
return Chrome(cookie_file, domain_name, key_file).load()
File "C:\Users\zhaot.virtualenvs\tradeCenterNx-kx4xaHRg\lib\site-packages\browser_cookie3_init_.py", line 387, in load
con = sqlite3_connect_readonly(self.cookie_file)
File "C:\Users\zhaot.virtualenvs\tradeCenterNx-kx4xaHRg\lib\site-packages\browser_cookie3_init
.py", line 145, in _sqlite3_connect_readonly
con = sqlite3.connect(uri + options, uri=True)
sqlite3.OperationalError: unable to open database file

@zhaotong1121 zhaotong1121 changed the title PermissionError: [Errno 13] Permission denied: 'C:\\Users\\{user}\\AppData\\Roaming\\..\\Local\\Google\\Chrome\\User Data\\Profile 4\\Network\\Cookies' In version 0.18.0, I am unable to read the cookie folder associated with the currently logged-in Chrome account. It throws a permission error. Jun 9, 2023
@darthwalsh
Copy link

@zhaotong1121 maybe this should be closed as a duplicate of #180? (even though this issue was created first.)

If you can't manually make a copy of %LOCALAPPDATA%\Google\Chrome\User Data\Default\Network\Cookies file because chrome is open, it's the same root cause.

@rafiibrahim8
Copy link
Collaborator

@darthwalsh Yeah. People are commenting on the other issue.

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

3 participants