Import API key from file
This commit is contained in:
parent
e09c9afa39
commit
4d256d6aa4
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
youtube.key
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
6
yt-unlist-saver.py
Normal file
6
yt-unlist-saver.py
Normal file
@ -0,0 +1,6 @@
|
||||
# Read YouTube API Key
|
||||
def getYouTubeAPIKey():
|
||||
return open('youtube.key', 'r').read()
|
||||
|
||||
print(getYouTubeAPIKey())
|
||||
exit(0)
|
Loading…
x
Reference in New Issue
Block a user