From 249c61c6c329bc1f18976a571d54c680ae0663d2 Mon Sep 17 00:00:00 2001 From: ihmily <114978440+ihmily@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:33:56 +0800 Subject: [PATCH] refactor: update demo test func --- demo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo.py b/demo.py index 22c1e27..c1c8d1c 100644 --- a/demo.py +++ b/demo.py @@ -14,11 +14,11 @@ LIVE_STREAM_CONFIG = { }, "kuaishou": { "url": "https://live.kuaishou.com/u/yall1102", - "func": spider.get_kuaishou_stream_data2, + "func": spider.get_kuaishou_stream_data, }, "huya": { "url": "https://www.huya.com/116", - "func": spider.get_huya_stream_data, + "func": spider.get_huya_app_stream_url, }, "douyu": { "url": "https://www.douyu.com/topic/wzDBLS6?rid=4921614&dyshid=", @@ -193,5 +193,5 @@ def test_live_stream(platform_name: str, proxy_addr=None) -> None: if __name__ == "__main__": - platform = "huamao" + platform = "douyin" test_live_stream(platform)