# FreeKindle **Repository Path**: forestfloat/FreeKindle ## Basic Information - **Project Name**: FreeKindle - **Description**: 免费 kindle 电子书数据库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Kindle ## 配置 参考 `config.py.example` ,修改 `config.py` 文件,填写 `API key`, 请在 [Amazon](https://console.aws.amazon.com/iam/home#security_credential ) 获取。 ```shell AWS_ACCESS_KEY_ID = "xxx" AWS_SECRET_ACCESS_KEY = "xxx" AWS_ASSOCIATE_TAG = "xxx" ``` ## 运行 ```shell virtualenv -p python3 venv source venv/bin/activate pip install -r requirements.txt -I python kindle.py ``` ## 获取免费电子书数据 ```shell python free_book.py ``` ## 生成数据库 ```shell python generator.py ``` **crontab 定时任务** ```shell 5 0 * * * /path/to/kindle/cron.sh >> /var/log/kindle.log 2>&1 ```