Dear forum, hello, I need a Python code that retrieves the link of the m3u8 file from the site https://www.tabii.com/tr/watch/live/trt1?trackId=150002.
+ Reply to Thread
Results 1 to 3 of 3
-
-
We all bleed blue from the inside....
-
Code:
import requests response = requests.post( 'https://trt.daioncdn.net/options/init', headers={ 'accept': '*/*', 'origin': 'https://www.tabii.com', 'referer': 'https://www.tabii.com/', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36', }, json={} ) master = f"https://trt.daioncdn.net/trt-1/master.m3u8?app=web&ppid={response.json()['result']['idHash']}" print(master)


Quote