An open API service indexing awesome lists of open source software.

https://github.com/shipwebdotjp/youtubechecker

Notify number of subscriber and changes and so on of specific Youtube Channel via LINE notify once a day.
https://github.com/shipwebdotjp/youtubechecker

Last synced: about 1 month ago
JSON representation

Notify number of subscriber and changes and so on of specific Youtube Channel via LINE notify once a day.

Awesome Lists containing this project

README

          

# Youtube Subscriber Checker
[![ICON](https://ytc.shipweb.jp/apple-touch-icon.png)](https://ytc.shipweb.jp/ "Youtube Checker")

This is a web service on Python-Flask frame work.
You can LINE/Google login and link with LINE Notify. You can also list some Youtube channels id.
Notificate number of subscriber and total view count of specific Youtube Channel via LINE once a day.
you can download these data as csv file. The transition includes in the data. To use Excel you can also draw a graph.

PythonのFlaskフレームワーク上で動くWebサービス。
LINE/Googleでのシングルサインオン機能,LINE Notifyとの連携機能を持つ。
指定したYoutubeチャンネルの登録者数,総再生数と増減を毎日一回LINEで通知
登録者数,再生数,動画数のデータをチャンネルごとにCSVファイルでダウンロード可能
指定した動画の再生数やコメント数、いいねの数の推移も通知や記録可能
それらのデータの推移知ることができ,Excelなどで読み込むことでグラフ表示も可能。

![LINE](https://blog.shipweb.jp/wp-content/uploads/2020/09/Screenshot-LINE01.jpg)

## Need API Keys
* LINE Notify token(for developers)
* LINE login channel(ID and secret)
* LINE messaging channel access token
* LINE Notify service(Client ID and secret)
* Google Data API Key
* Google OAuth client ID
* Google OAuth client secret

## 必要なAPI
* LINE Notify トークン(開発者向け)
* LINE ログインチャンネル(IDとシークレット)
* LINE メッセージングチャンネル アクセストークン
* LINE Notify サービス(クライアントIDとシークレット)
* Google Data APIキー
* Google OAuth クライアントID
* Google OAuth クライアントシークレット

## Setting
1. input needed API Key to .env file. (you can copy .env.sample to .env and edit it.)
.envファイルに必要なAPIのキーを記入。(.env.sampleをコピーして使用可能)

## Requirements
* Dcoker
* Python 3
* Flask

## Install
```
git clone https://github.com/shipwebdotjp/youtubechecker
cd youtubechecker
cp ./app/.env.sample ./app/.env
vi ./app/.env
--Edit Your Keys
:wq
```

### Run with Docker
```
make init
make run
```
Then, Check http://localhost:5000/

### Run on production mode
If you want to run on production mode, edit docker-compose.yml
```
ports:
- "5000:80"
FLASK_ENV: production
```

## Data file output
You can download csv file from /channellist which contains current data of all channels.
If you want to see the history, see the each channel page.
You can find CSV Download button.

### channels-%y%M%D.csv for example channels-201002.csv
```
"Channel Id","Channel name","Published at","subscriberCount","subscriberChange","viewCount","viewChange","videoCount","videoChange","commentCount","commentChange"
"UCne2IBkAj3JoyzNAOzXxKMg","shipweb","2015-11-29 10:55:00","52","0","17841","0","17","0","0","0"
```
### 'Channel name'-%y%M%D.csv for example shipweb-201002.csv
```
"Date","subscriberCount","subscriberChange","viewCount","viewChange","videoCount","videoChange","commentCount","commentChange"
"2020-10-02 00:02:01","52","0","17841","0","17","0","0","0"
```

## Demo site
[Youtube Checker](https://ytc.shipweb.jp/)

## Author
ship [Youtube channel](https://www.youtube.com/channel/UCne2IBkAj3JoyzNAOzXxKMg)

## Youtube Video
[![thumbnail](http://img.youtube.com/vi/iepogFY4-Ns/0.jpg)](https://www.youtube.com/watch?v=iepogFY4-Ns "Python Programming")

## License
MIT License