這是一個能幫助你學習英文的小工具,主要是使用Airflow和Python開發的。功能如下:
- 每日定時使用telegram推送英文vlog讓你收看,讓你學習不間斷。
- 能夠追蹤自己喜歡的英文頻道,頻道一有更新馬上幫你抓到資料庫中。
- 查看自己的學習紀錄,讓你成就滿滿!
- Clone the repo and get into the folder
$ git clone https://github.com/ChickenBenny/Airflow-Learning-English-tool.git
$ cd Airflow-Learning-English-tool
- Use docker-compose up to build the app
$ docker-compose up -d
- Set the connection and make sure you have telegram and youtube api
$ docker exec -it webserver airflow connections add 'database' --conn-type 'postgres' --conn-login 'airflow' --conn-password 'airflow' --conn-host 'database' --conn-port '5432' --conn-schema 'airflow'
$ docker exec -it webserver airflow connections add 'telegram' --conn-type 'http' --conn-host ${chat id} --conn-password ${api token}
-
You need to change the api token in the folders, which are
/dags/credentials
and/init/credentials
. -
Have fun and play with it !!
- Youtube API 的取得方法請詳 : https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/101-%E4%BD%BF%E7%94%A8-youtube-data-api-%E6%8A%93%E5%8F%96%E6%9C%89%E8%B6%A3%E7%9A%84-youtuber-%E5%BD%B1%E7%89%87-mv-d05c3a0c70aa
- Telegram API 的取得方法請詳 : https://tcsky.cc/tips-01-telegram-chatbot/