mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
[tests] test_twitter
This commit is contained in:
parent
e2ba3ecdb3
commit
f2ea06473a
@ -10,7 +10,8 @@ from you_get.extractors import (
|
|||||||
acfun,
|
acfun,
|
||||||
bilibili,
|
bilibili,
|
||||||
soundcloud,
|
soundcloud,
|
||||||
tiktok
|
tiktok,
|
||||||
|
twitter
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ class YouGetTests(unittest.TestCase):
|
|||||||
youtube.download(
|
youtube.download(
|
||||||
'http://www.youtube.com/watch?v=pzKerr0JIPA', info_only=True
|
'http://www.youtube.com/watch?v=pzKerr0JIPA', info_only=True
|
||||||
)
|
)
|
||||||
youtube.download('http://youtu.be/pzKerr0JIPA', info_only=True)
|
#youtube.download('http://youtu.be/pzKerr0JIPA', info_only=True)
|
||||||
#youtube.download(
|
#youtube.download(
|
||||||
# 'http://www.youtube.com/attribution_link?u=/watch?v%3DldAKIzq7bvs%26feature%3Dshare', # noqa
|
# 'http://www.youtube.com/attribution_link?u=/watch?v%3DldAKIzq7bvs%26feature%3Dshare', # noqa
|
||||||
# info_only=True
|
# info_only=True
|
||||||
@ -57,6 +58,9 @@ class YouGetTests(unittest.TestCase):
|
|||||||
tiktok.download('https://www.tiktok.com/@nmb48_official/video/6850796940293164290', info_only=True)
|
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://t.tiktok.com/i18n/share/video/6850796940293164290/', info_only=True)
|
||||||
|
|
||||||
|
def test_twitter(self):
|
||||||
|
twitter.download('https://twitter.com/elonmusk/status/1530516552084234244', info_only=True)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user