diff options
| author | mcd223 <jacob@simplelittledream.com> | 2017-11-22 11:24:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-22 11:24:23 -0500 |
| commit | 8aea347ab0e17efe8eb993a26961639eb6f14524 (patch) | |
| tree | a207b900025d5c538c5ca47e8f777e64ac66cb01 /YouTubeSubCount.py | |
| parent | 63ad1bcd5f79d74d05bd6bd348a6116ebdc955ac (diff) | |
Delete YouTubeSubCount.py
Diffstat (limited to 'YouTubeSubCount.py')
| -rw-r--r-- | YouTubeSubCount.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/YouTubeSubCount.py b/YouTubeSubCount.py deleted file mode 100644 index 381aec5..0000000 --- a/YouTubeSubCount.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -import requests -import json -import time -import os - -while True: - - r = requests.get('https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCXUuGvjW1KLq6oqfEX0BieQ&key=AIzaSyC6xLODu34WFpDHdqaQf8Lfmokh5wYX_is') - j = r.json() - - subs = j['items'][0]['statistics']['subscriberCount'] - views = j['items'][0]['statistics']['viewCount'] - - - time.sleep(5) - os.system('clear') - print "YOUR CHANNEL Channel Stats:" - print "Total number of subscribers: %s" % (subs) - print "Total number of views: %s" % (views) |
