From 875a1ca2456d2b4ac5bb426c18e0d682a70e71b7 Mon Sep 17 00:00:00 2001 From: liangyao Date: Fri, 20 Nov 2020 16:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=87=E5=9C=BA4K=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test.py | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/tests/test.py b/tests/test.py index 0f7595b3..38bf03a9 100644 --- a/tests/test.py +++ b/tests/test.py @@ -10,7 +10,8 @@ from you_get.extractors import ( acfun, bilibili, soundcloud, - tiktok + tiktok, + xinpianchang ) @@ -33,9 +34,9 @@ class YouGetTests(unittest.TestCase): 'http://www.youtube.com/attribution_link?u=/watch?v%3DldAKIzq7bvs%26feature%3Dshare', # noqa info_only=True ) - #youtube.download( + # youtube.download( # 'https://www.youtube.com/watch?v=Fpr4fQSh1cc', info_only=True - #) + # ) def test_acfun(self): acfun.download('https://www.acfun.cn/v/ac11701912', info_only=True) @@ -53,12 +54,18 @@ class YouGetTests(unittest.TestCase): soundcloud.download( 'https://soundcloud.com/keiny-pham/impure-bird', info_only=True ) - ## playlist - #soundcloud.download( - # 'https://soundcloud.com/anthony-flieger/sets/cytus', info_only=True - #) - #def tests_tiktok(self): + def test_xinpianchang(self): + ## 4K + xinpianchang.download('https://www.xinpianchang.com/a11029357?from=ArticleList', info_only=True) + xinpianchang.download('https://www.xinpianchang.com/a10791486?from=ArticleList', info_only=True) + xinpianchang.download('https://www.xinpianchang.com/a10296109?from=ArticleList', info_only=True) + ## playlist + # soundcloud.download( + # 'https://soundcloud.com/anthony-flieger/sets/cytus', info_only=True + # ) + + # def tests_tiktok(self): # tiktok.download('https://www.tiktok.com/@nmb48_official/video/6850796940293164290', info_only=True) # tiktok.download('https://t.tiktok.com/i18n/share/video/6850796940293164290/', info_only=True) # tiktok.download('https://vt.tiktok.com/UGJR4R/', info_only=True)