ttvc
is library for getting the ToTal number of Views of a YouTube Channel per day.
npm install --save ttvc
I'd recommend use "cross-env" on "--save-dev" because this library looks environment variable.
- Set the the Youtube API key obtained using GCP to .env.
API_KEY=
- Set the ID of the channel for which you want to get the number of views to .env.
CHANNEL_ID=
Example:
node node_modules/ttvc/main.js
今日までのTestChannelの総再生回数は100000です。
yuki