Import API key from file
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
youtube.key
|
||||||
|
|
||||||
# ---> Python
|
# ---> Python
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__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)
|
Reference in New Issue
Block a user