-
Notifications
You must be signed in to change notification settings - Fork 216
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
python kindle.py --pdoc --mode sel --cn --cookie ${cookie} ${csrf}报错 #139
Comments
csrf token 放在第一个位置 |
还是不行,现在是这样运行的“python kindle.py --cn ${csrf} --cookie ${cookie} --pdoc --mode sel ” 还是同样的错误 |
是这样,gui 能运行,cli 理论应该也可以,因为两个是一个原理。。。你看看,cookie 用单引号包裹? |
@yihong0618 |
不是,如果不行的话,GUI 好用你可以先用 GUI, 我有时间会研究下为什么,但现在比较忙 |
我遇到的问题报错和你类似,也是 在 csrfToken="XXXXXXXX"
device_sn="YYYYYY"
python3 kindle.py --device_sn ${device_sn} --dedrm --cn ${csrfToken} 出现报错
我理解在 cookie="ZZZ"
csrfToken="XXXXXXXX"
device_sn="YYYYYY"
python3 kindle.py --device_sn ${device_sn} --dedrm --cn --cookie ${cookie} ${csrfToken} 忽略 |
@huataihuang 感谢,我们研究下,如果有兴趣,PR welcome 哈 |
@huataihuang @yihong0618 问题已经解决,疑似python版本问题,升级python 3.11.4 就没有这个问题了 |
Error: CSRF_VALIDATION_FAILED, please visit https://www.amazon.cn/hz/mycd/myx#/home/content/booksAll to revoke the csrftoken and cookie
事实上此时的cookie和csrf能通过gui版本正确获取电子书,
但是运行“python kindle.py --pdoc --mode sel --cn --cookie ${cookie} ${csrf}” 报以上错误
The text was updated successfully, but these errors were encountered: