reformat code and change some comments to be more helpful

This commit is contained in:
Kim Oliver Drechsel 2020-11-22 16:19:28 +01:00
parent 6e1f525dc0
commit 87debf673d

View File

@ -40,19 +40,21 @@ class API:
return video_title, video_url return video_title, video_url
# Add your Youtube V3 API Key here
# Add your Youtube Data API V3 Key here
API_KEY = '' API_KEY = ''
# Add the Channel IDs here (as part of the channel url) # Add the Channel IDs here
CHANNEL_ID = ['1', # ID 1 # When you only know the channel name you can get the ID from here https://commentpicker.com/youtube-channel-id.php
'2', # ID 2 CHANNEL_ID = [
#And so on 'ID1',
] 'ID2'
]
videos = [] videos = []
for item in CHANNEL_ID: for item in CHANNEL_ID:
var = API(API_KEY, item) var = API(API_KEY, item)
videos.append(var.start_find_video_process()) videos.append(var.start_find_video_process())
print(videos) print(videos)