Import API key from file

This commit is contained in:
Christian Colglazier 2021-06-28 13:28:15 -04:00
parent e09c9afa39
commit 4d256d6aa4
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
youtube.key
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/

6
yt-unlist-saver.py Normal file
View File

@ -0,0 +1,6 @@
# Read YouTube API Key
def getYouTubeAPIKey():
return open('youtube.key', 'r').read()
print(getYouTubeAPIKey())
exit(0)