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

Stopped working on Edge and Chrome #195

Open
TheAhmedRmdan opened this issue Sep 18, 2023 · 10 comments
Open

Stopped working on Edge and Chrome #195

TheAhmedRmdan opened this issue Sep 18, 2023 · 10 comments

Comments

@TheAhmedRmdan
Copy link

Edge Error:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Ahmed Ramdan\\AppData\\Roaming\\..\\Local\\Microsoft\\Edge\\User Data\\Default\\Network\\Cookies'

Chrome Error:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Ahmed Ramdan\\AppData\\Roaming\\..\\Local\\Google\\Chrome\\User Data\\Default\\Network\\Cookies'

Used by this facebook-scraper
I have tried using load(), edge(), and chrome() when getting the cookies, but same error.

@TheAhmedRmdan TheAhmedRmdan changed the title Stopped working on Edge and chrome Stopped working on Edge and Chrome Sep 18, 2023
@ColorfulQuark
Copy link

I'm having the same problem. Chrome, Edge and Brave get the permission error, while firefox works properly.

@shoutizix
Copy link

Same problem for me with Edge

@bhkluc
Copy link

bhkluc commented Sep 21, 2023

same for me, if you copy cookfile manually and rename it works though ... just an issue with copying

@ColorfulQuark
Copy link

@bhkluc Please describe in more detail what you did, including how you got browser_cookie3 to use the file you copied.

@Mitchell-13
Copy link

I am also having this issue. Has anyone been able to find a fix/workaround?

@5j9
Copy link

5j9 commented Oct 2, 2023

This looks to be a duplicate of #180. You can either close the browser completely (note that edge sometimes leaves some background processes named msedge.exe that need to be killed) or use --disable-features=LockProfileCookieDatabase option on Chrome to disable the lock. See that issue for more details.

@Mitchell-13
Copy link

I am using edge, will the feature flag still work? and for my use case, it is not an option to close out of the browser before running the program. Is there an alternative fix?

@thewh1teagle
Copy link

I also had this problem
So I rewrote the library in Rust
And you can work with it from Python
In the implementation I did, there is no need to close the browsers to load the cookies! 🚀
You can try it here and let me know if it works for your github.com/rookie

@Mitchell-13
Copy link

Thank you, that works great!

M4xyMC added a commit to M4xyMC/hoyolab-daily-bot that referenced this issue Jun 23, 2024
> The library was changed to obtain cookies due to problems with obtaining Cookies files from some browsers such as Edge and Opera.
> More info here: borisbabic/browser_cookie3#195 (comment)
@redpintings
Copy link

我也遇到了这个问题, 所以我重写了库Rust ,您可以从中使用它,Python 在我所做的实现中,无需关闭浏览器即可加载 cookie!🚀 您可以在此处尝试,并让我知道它是否适用于您的github.com/rookie

good

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

8 participants