refactor: update demo test func

This commit is contained in:
ihmily 2024-10-23 16:33:56 +08:00
parent 6d087aa648
commit 249c61c6c3

View File

@ -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)