scripts-github-mirror/kindle
tianyu 0e431de385 fix requirements 2016-09-27 01:16:19 +08:00
..
.gitignore add details 2016-09-27 01:03:20 +08:00
README.md add details 2016-09-27 01:03:20 +08:00
book.py remove kindle 2016-09-25 00:53:26 +08:00
config.py.example add details 2016-09-27 01:03:20 +08:00
cron.sh update kindle 2016-09-25 11:23:24 +08:00
kindle.py add details 2016-09-27 01:03:20 +08:00
requirements.txt fix requirements 2016-09-27 01:16:19 +08:00

README.md

Kindle

配置

参考 config.py.example ,修改 config.py 文件,填写 API key 请在 Amazon 获取。

AWS_ACCESS_KEY_ID = "xxx"
AWS_SECRET_ACCESS_KEY = "xxx"
AWS_ASSOCIATE_TAG = "xxx"

运行

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt -I
python kindle.py

crontab

5 0 * * * /path/to/kindle/cron.sh >> /var/log/kindle.log 2>&1