yt-unlist-saver/yt-unlist-saver.py

18 lines
479 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())
title, date, channel, channelId, description, tags, privacy = api.getVideoInfo(sys.argv[1])
print('Title: ' + title)
print('Date: ' + date)
print('Channel: {} ({})'.format(channel, channelId) )
print('Description: ' + description)
print('Tags: ', tags)
print('Privacy: ' + privacy)