l1ving_youtube-dl/test/ci/test_tiktok.py

18 lines
410 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 21:07:13 +03:00
self.assertEquals(info['share_count'], 121)
2020-04-20 20:54:18 +03:00
2020-04-20 13:40:18 +03:00
if __name__ == '__main__':
unittest.main()