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

16 lines
439 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)
self.assertEquals(info['title'], "She got a face full of DUSTBIN #foryou")
if __name__ == '__main__':
unittest.main()