From 4d256d6aa408b4aab6a3f28741bca532947fb044 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Mon, 28 Jun 2021 13:28:15 -0400 Subject: [PATCH] Import API key from file --- .gitignore | 2 ++ yt-unlist-saver.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 yt-unlist-saver.py diff --git a/.gitignore b/.gitignore index f8b73e7..7c10531 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +youtube.key + # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/yt-unlist-saver.py b/yt-unlist-saver.py new file mode 100644 index 0000000..ea3d1ae --- /dev/null +++ b/yt-unlist-saver.py @@ -0,0 +1,6 @@ +# Read YouTube API Key +def getYouTubeAPIKey(): + return open('youtube.key', 'r').read() + +print(getYouTubeAPIKey()) +exit(0)