import requests
import browsercookie
cj = browsercookie.chrome()
r = requests.get('http://stackoverflow.com', cookies=cj)
for cookie in self.get_cookies():
File "C:\Python27\lib\site-packages\browsercookie\__init__.py", line 118, in get_cookiescur.execute('SELECT host_key, path, secure, expires_utc, name, value, encrypted_value FROM cookies;')
sqlite3.DatabaseError: malformed database schema (is_transient) - near "where": syntax error
因为新版的chrome的cookies数据库格式已经修改了,不再使用旧的sql命令。