update kindle

This commit is contained in:
tianyu 2016-09-25 11:23:24 +08:00
parent e64fb6167a
commit 7be263874e
2 changed files with 21 additions and 7 deletions

View File

@ -1,13 +1,16 @@
# Kindle
## Install dependencies
## 运行
```shell
pip3 install -r requirements.txt
```
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt -I
python kindle.py
```
## Run
**crontab**
```shell
python3 kindle.py
```
```
5 0 * * * /path/to/kindle/cron.sh >> /var/log/kindle.log 2>&1
```

11
kindle/cron.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
echo $(date)
PWD="$(dirname $0)"
echo "$PWD"
cd "$PWD" || exit 1
venv/bin/python kindle.py