Open why-not opened 2 years ago
I installed the exact chromedriver-binary as above (102.0.5005.61) using
pip install chromedriver-binary==102.0.5005.61.0
But I still get the same error as "Unable to set cookie"
It seems like not the driver issue. It works really well on my machine
from crawler import WordsCrawler
url = "https://www.facebook.com/groups/697763397093911"
cookies = "data/www.facebook.com_04-06-2022.json"
output_name = "facebook"
crawler = WordsCrawler(
url=url,
cookies_path=cookies,
output_path=output_name,
headless=False
)
crawler.run()
ekky,
I tried cookie feature with the GitHub.com website.
I created this test account for us.
username: wtozmopsfnnxwtiryg@nthrl.com password: 9&9&9&9&9&a
Once you are logged in export the cookies using the extension https://chrome.google.com/webstore/detail/j2team-cookies/okpidcojinmlaakglciglbpcpajaibco/reviews
If not you can also use the cookie that I have attached for your convenience with this message. https://gist.githubusercontent.com/why-not/986fc89385e458f64d6142abb91aa5ab/raw/36a20befe04658cb3dcc7f9240fa456349d0e38e/github_cookie_test.json
It prints the above "Unable to set cookie" message.
Let me know,
thank you,
(Session info: headless chrome=102.0.5005.61)