Created
July 4, 2016 21:24
-
-
Save mickeypash/dd2eb212f07591076dfaeb594a6d8c05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
mickey_ch_id = 'UCyHQxCUs1ENbnj36FjesG7Q' | |
marc_ch_id = 'UCzhG6dIYhenVoRVgcdUexLQ' | |
stoyan_ch_id = 'stoyanjr' | |
base_url = 'https://www.googleapis.com/youtube/v3/' | |
path = 'subscriptions?part=id&channelId=UCyHQxCUs1ENbnj36FjesG7Q&fields=items%2Fid&key=' | |
full_path = '{0}{1}{2}'.format(base_url, path, API_KEY) | |
print full_path | |
r = requests.get(full_path) | |
print r.status_code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected output: