Prepare for video downloading (#81)

* add video fetching to api
* add video parsing
* add video download example
This commit is contained in:
Oskar Dudziński
2025-02-06 21:18:20 +01:00
committed by GitHub
parent 8bf6906b81
commit 2dcae191da
8 changed files with 186 additions and 23 deletions
+7 -1
View File
@@ -14,7 +14,7 @@ class TestApi(unittest.TestCase):
token, user_id, country_code = (
auth.token,
auth.user_id,
auth.country_code
auth.country_code,
)
assert token, "No token found in config file"
@@ -77,6 +77,12 @@ class TestApi(unittest.TestCase):
def test_search(self):
self.api.getSearch("Kanye West")
def test_video(self):
self.api.getVideo(373513584)
def test_video_stream(self):
self.api.getVideoStream(373513584)
if __name__ == "__main__":
unittest.main()