Skip to content

Instantly share code, notes, and snippets.

View firminunderscore's full-sized avatar
🏠
At home

Firmin_ firminunderscore

🏠
At home
View GitHub Profile
@firminunderscore
firminunderscore / username-to-id.py
Last active September 18, 2024 19:44
Download all videos of a youtube channel
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,