User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

youtube_playlist [2023/01/29 19:29] – created ssm2017youtube_playlist [2023/01/29 20:17] (current) ssm2017
Line 4: Line 4:
 import json import json
  
-channel_id = "*******" +channel_id = "************" 
-api_key = "****************"+api_key = "*******"
  
 youtube = googleapiclient.discovery.build("youtube", "v3", developerKey = "AIzaSyBRYFmzq1rlEwAp5P8VdpQmnJmZC5h9gRE") youtube = googleapiclient.discovery.build("youtube", "v3", developerKey = "AIzaSyBRYFmzq1rlEwAp5P8VdpQmnJmZC5h9gRE")
  
 def getItemsByKey(playlist_id): def getItemsByKey(playlist_id):
-    from googleapiclient.discovery import build 
- 
-    api_service_name = "youtube" 
-    api_version = "v3" 
-    youtube = build(api_service_name, api_version, developerKey=api_key) 
     request = youtube.playlistItems().list(     request = youtube.playlistItems().list(
         part="snippet",         part="snippet",

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information