-
Notifications
You must be signed in to change notification settings - Fork 2k
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
怎么解析cookie失败 #619
Labels
failed
程序运行出错
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
为了更好的解决问题,请认真回答下面的问题。等到问题解决,请及时关闭本issue。
答:github
答:是
答:
答:
答:
答:Failed to obtain weibo.cn cookie from Chrome browser: Unable to get key for cookie decryption
Check for cookie failed: Unable to get key for cookie decryption
Unable to get key for cookie decryption
Traceback (most recent call last):
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init_.py", line 562, in _decrypt
return self.decrypt_windows_chromium(value, encrypted_value)
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init.py", line 553, in _decrypt_windows_chromium
_, data = crypt_unprotect_data(encrypted_value)
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init.py", line 89, in _crypt_unprotect_data
raise RuntimeError('Failed to decrypt the cipher text with DPAPI')
RuntimeError: Failed to decrypt the cipher text with DPAPI
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init_.py", line 578, in _decrypt
data = aes.decrypt_and_verify(encrypted_value[12:-16], tag)
File "F:\code\weiboSpider\venv\lib\site-packages\Cryptodome\Cipher_mode_gcm.py", line 567, in decrypt_and_verify
self.verify(received_mac_tag)
File "F:\code\weiboSpider\venv\lib\site-packages\Cryptodome\Cipher_mode_gcm.py", line 508, in verify
raise ValueError("MAC check failed")
ValueError: MAC check failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\code\weiboSpider\weiboSpider\weibo_spider\spider.py", line 387, in main
config = get_config()
File "F:\code\weiboSpider\weiboSpider\weibo_spider\spider.py", line 376, in get_config
config_util.check_cookie(config_path)
File "F:\code\weiboSpider\weiboSpider\weibo_spider\config_util.py", line 209, in check_cookie
cookie = get_cookie()
File "F:\code\weiboSpider\weiboSpider\weibo_spider\config_util.py", line 181, in get_cookie
chrome_cookies = browser_cookie3.chrome(domain_name='weibo.cn')
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init.py", line 1188, in chrome
return Chrome(cookie_file, domain_name, key_file).load()
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init.py", line 516, in load
value = self.decrypt(value, enc_value, has_integrity_check_for_cookie_domain)
File "F:\code\weiboSpider\venv\lib\site-packages\browser_cookie3_init.py", line 580, in _decrypt
raise BrowserCookieError(
browser_cookie3.BrowserCookieError: Unable to get key for cookie decryption
The text was updated successfully, but these errors were encountered: