We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06a1ca9 commit c7d6069Copy full SHA for c7d6069
index.py
@@ -184,7 +184,9 @@ def getVideoInfo(video_id):
184
# Set up Google API credentials using API key
185
api_key = os.environ.get('YOUTUBE_API_KEY')
186
if api_key is None:
187
- raise Exception("No API key found")
+ raise Exception(
188
+ "No API key found, please set the YOUTUBE_API_KEY environment variable. \n Example: export YOUTUBE_API_KEY=your_api_key"
189
+ )
190
youtube = googleapiclient.discovery.build(
191
"youtube", "v3", developerKey=api_key)
192
request = youtube.videos().list(part="id,snippet",
0 commit comments