1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 00:07:19 +08:00
youtube-dl/test/ci/test_tiktok.py

17 lines
409 B
Python
Raw Normal View History

2020-04-20 13:40:18 +03:00
import unittest
import youtube_dl
2020-04-20 15:27:31 +03:00
class TikTokTestYoutubeDl(unittest.TestCase):
def test_meta_data(self):
2020-04-20 13:40:18 +03:00
url = 'https://www.tiktok.com/@danieltbraun/video/6817099671043853574'
params = {}
ydl = youtube_dl.YoutubeDL(params)
info = ydl.extract_info(url, download=False)
2020-04-20 20:54:18 +03:00
self.assertEquals(info['share_count'], 110)
2020-04-20 13:40:18 +03:00
if __name__ == '__main__':
unittest.main()