aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/subscriptions.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-06-30 23:34:46 -0700
committerJames Taylor <user234683@tutanota.com>2018-06-30 23:34:46 -0700
commit98157bf1bf1223ffa7556d2d21cfac6f07675f9d (patch)
tree9863e438deec87bb309a435c0f4cb0eb0e455dcc /youtube/subscriptions.py
downloadyt-local-98157bf1bf1223ffa7556d2d21cfac6f07675f9d.tar.lz
yt-local-98157bf1bf1223ffa7556d2d21cfac6f07675f9d.tar.xz
yt-local-98157bf1bf1223ffa7556d2d21cfac6f07675f9d.zip
initial commit
Diffstat (limited to 'youtube/subscriptions.py')
-rw-r--r--youtube/subscriptions.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py
new file mode 100644
index 0000000..5edf6fc
--- /dev/null
+++ b/youtube/subscriptions.py
@@ -0,0 +1,18 @@
+import urllib
+
+with open("subscriptions.txt", 'r', encoding='utf-8') as file:
+ subscriptions = file.read()
+
+# Line format: "channel_id channel_name"
+# Example:
+# UCYO_jab_esuFRV4b17AJtAw 3Blue1Brown
+
+subscriptions = ((line[0:24], line[25: ]) for line in subscriptions.splitlines())
+
+def get_new_videos():
+ for channel_id, channel_name in subscriptions:
+
+
+
+
+def get_subscriptions_page():