update kindle
This commit is contained in:
parent
e64fb6167a
commit
7be263874e
|
@ -1,13 +1,16 @@
|
||||||
# Kindle
|
# 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
|
||||||
```
|
```
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo $(date)
|
||||||
|
|
||||||
|
PWD="$(dirname $0)"
|
||||||
|
|
||||||
|
echo "$PWD"
|
||||||
|
|
||||||
|
cd "$PWD" || exit 1
|
||||||
|
|
||||||
|
venv/bin/python kindle.py
|
Loading…
Reference in New Issue