diff options
| author | dee-oh-double-gee <beaugraham+github@gmail.com> | 2017-02-24 21:48:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-24 21:48:25 -0700 |
| commit | a8ce0cc5237022be257c0a12298e3af53438dc70 (patch) | |
| tree | ea9f84846544a8f57435751ce794e188da8d7ce5 /YouTubeSubCount.py | |
| parent | 45b51743ad0bbe3aca2787966d2cbe1285fc49db (diff) | |
Update YouTubeSubCount.py
Diffstat (limited to 'YouTubeSubCount.py')
| -rw-r--r-- | YouTubeSubCount.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/YouTubeSubCount.py b/YouTubeSubCount.py index 95cfd6d..c3a6e0d 100644 --- a/YouTubeSubCount.py +++ b/YouTubeSubCount.py @@ -6,7 +6,7 @@ import os while True: - r = requests.get('https://www.googleapis.com/youtube/v3/channels?part=statistics&id=YOUTUBE_IT&key=YOUTUBE_DATA_API_V3') + r = requests.get('https://www.googleapis.com/youtube/v3/channels?part=statistics&id=CHANNEL_ID&key=YOUTUBE_DATA_API_V3') j = r.json() subs = j['items'][0]['statistics']['subscriberCount'] @@ -16,7 +16,7 @@ while True: time.sleep(60) os.system('clear') - print "Beau Knows Tech... Stuff Channel Stats:" + print "YOUR CHANNEL Channel Stats:" print "Total number of subscribers: %s" % (subs) print "Total number of views: %s" % (views) |
