summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2025-08-19 19:47:08 +0300
committerA Farzat <a@farzat.xyz>2025-08-19 19:47:08 +0300
commit9af9e9031a460fe6e26f61cbae84c23c88606bcc (patch)
treebd90bd179b90a87515538a7abfed6b7ef849ab8c
parent9de258844b128c38ce523aa4e3483adf33dc7bb2 (diff)
downloadcsca5028-9af9e9031a460fe6e26f61cbae84c23c88606bcc.tar.gz
csca5028-9af9e9031a460fe6e26f61cbae84c23c88606bcc.zip
Create a NamedTuple for videos
-rw-r--r--data-collection/components/videos.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/data-collection/components/videos.py b/data-collection/components/videos.py
new file mode 100644
index 0000000..71937b2
--- /dev/null
+++ b/data-collection/components/videos.py
@@ -0,0 +1,11 @@
+from typing import NamedTuple
+from datetime import datetime
+
+class VideoTuple(NamedTuple):
+ id: str
+ link: str
+ title: str
+ published: datetime
+ updated: datetime
+ thumbnail: str
+ summary: str