VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Hi Forum,

    I need help (python scrypt) to get strem link from the site https://tv.bnt.bg/bnt1subs

    Thanks advance
    Quote Quote  
  2. everyone here wants py scripts ... stream detector fail ?
    Quote Quote  
  3. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Code:
    import re
    
    import requests
    
    SOURCE_URL = "https://tv.bnt.bg/bnt1subs"
    response = requests.get(SOURCE_URL).content.decode()
    live_url = re.search(r'<iframe.*?src="(.*?)".*?/iframe>', response).group(1)
    live_url = live_url.replace("//", "https://")
    
    response = requests.get(live_url, headers={
        'Referer': 'https://tv.bnt.bg/',
    }).content.decode()
    playlist_m3u8 = re.search(r'<source src="(.*?)"', response).group(1)
    playlist_m3u8 = playlist_m3u8.replace("//", "https://")
    
    print(playlist_m3u8)
    Output:
    Code:
    https://lb-ts.cdn.bg/bnt1/fls/bnt1sub.stream/at=O0U9MTcxMDQzMzQ0NDtBPTE7Sz0zO1A9MDExMTA7Uz0zYjc3OTY1ZmE2ZTBlMzg5NDRkOTllMWFiYmQwN2MxNWZmMjZkMzkw/playlist.m3u8
    Needs Bulgarian IP
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!