streamlink plugin for tiktok
https://streamlink.github.io/cli/plugin-sideloading.html
After downloading douyu.py
and placing it in a specified folder, it will be automatically loaded when using streamlink, or you can manually specify it by adding the parameter --plugin-dir DIRECTORY
.
streamlink -j https://www.tiktok.com/@kladmenhcik555/live
{
"plugin": "tiktok",
"metadata": {
"id": "7386967580512127751",
"author": "\ud83e\uddca\u26a1REVENGE\u26a1\ud83e\uddca",
"category": null,
"title": "\u0421\u041d\u0410\u0419\u041fvs\u041b\u041e\u041a\u0410\u041b\u041a\u0410"
},
"streams": {
"ao": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000.flv?expire=1721135410&sign=4c392db780430f85b6978e28c8662f86&only_audio=1",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"ld": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_ld.flv?expire=1721135410&sign=7b6d85922165fe1b7f9de7d7f6132c38",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"origin": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_or4.flv?expire=1721135410&sign=3a4a4e854f673df3db784e5728d89790",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"sd": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_sd.flv?expire=1721135410&sign=1fd8d1d61543f76467f8c195eb4265fd",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"hd": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_hd.flv?expire=1721135410&sign=ed29e37236cb1cb9658a04693da1d55b",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"hd_60": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_hd60.flv?expire=1721135410&sign=257046f099f7cf277f6e87047d507301",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"worst": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_ld.flv?expire=1721135410&sign=7b6d85922165fe1b7f9de7d7f6132c38",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
},
"best": {
"type": "http",
"method": "GET",
"url": "https://pull-q5-sg01.tiktokcdn.com/game/stream-2133034003702481000_hd60.flv?expire=1721135410&sign=257046f099f7cf277f6e87047d507301",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Accept-Encoding": "gzip, deflate",
"Accept": "*/*",
"Connection": "keep-alive"
},
"body": null
}
}
}