This file contains 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 googleapiclient.discovery | |
API_KEY = "YOUR_OWN_API_KEY" | |
def get_channel_id_for_channel_name(channel_name): | |
youtube = googleapiclient.discovery.build("youtube", "v3", developerKey=API_KEY) | |
request = youtube.search().list( | |
part="snippet", | |
q=channel_name, |