Real time view of funds information
-
python 3.9.1
-
pip 20.2.3
-
appToken: get the token after created a WxPusher APP (line: 58)
-
topicIds: get topicId after created a topic of APP (line: 62)
pip install requests
py fund.py
send message to wechat
macOS/Linux: cron の使い方(python スクリプト)
- create shell
start.sh
#!/bin/bash
source /etc/profile
python3 {FULL PATH}/wechat-fund/fund.py
- crontab
-
edit crontab
crontab -e
-
paste, replace path and save (run at working day 14:40)
40 14 * * 1-5 {FULL PATH}/start.sh >> {FULL PATH}/Desktop/crontab_log.txt
-
confirm results
crontab -l
send fund information by LineBot