mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 01:00:08 +08:00
18 lines
410 B
Python
18 lines
410 B
Python
import unittest
|
|
import youtube_dl
|
|
|
|
|
|
class TikTokTestYoutubeDl(unittest.TestCase):
|
|
def test_meta_data(self):
|
|
url = 'https://www.tiktok.com/@danieltbraun/video/6817099671043853574'
|
|
params = {}
|
|
ydl = youtube_dl.YoutubeDL(params)
|
|
info = ydl.extract_info(url, download=False)
|
|
self.assertEquals(info['share_count'], 121)
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|