12 lines
234 B
Python
12 lines
234 B
Python
#!/usr/bin/env python3
|
|
|
|
from youtube_api import YouTubeAPI
|
|
import sys
|
|
|
|
# Read YouTube API Key
|
|
def getYouTubeAPIKey():
|
|
return open('youtube.key', 'r').read()
|
|
|
|
api = YouTubeAPI(getYouTubeAPIKey())
|
|
print(api.getVideoInfo(sys.argv[1]))
|