VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Hello, I need php code to scrap m3u8 link from thise site:https://btvplus.bg/live/

    Thanks
    Quote Quote  
  2. try to write this to php:

    python:
    Code:
    import requests
    import time
    
    cur_time = int(time.time() * 1000)
    
    headers = {
        'authority': 'btvplus.bg',
        'referer': 'https://btvplus.bg/live/',
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
        'x-requested-with': 'XMLHttpRequest',
    }
    
    params = {
        'media_id': '2110383625',
        '_': cur_time,
    }
    
    response = requests.get('https://btvplus.bg/lbin/v3/btvplus/player_config.php', params=params, headers=headers).json()
    
    hls_link = response['info']['file']
    print(hls_link)
    Image
    [Attachment 72053 - Click to enlarge]
    Quote Quote  
  3. Originally Posted by sk8ordi3 View Post
    try to write this to php:

    python:
    Code:
    import requests
    import time
    
    cur_time = int(time.time() * 1000)
    
    headers = {
        'authority': 'btvplus.bg',
        'referer': 'https://btvplus.bg/live/',
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
        'x-requested-with': 'XMLHttpRequest',
    }
    
    params = {
        'media_id': '2110383625',
        '_': cur_time,
    }
    
    response = requests.get('https://btvplus.bg/lbin/v3/btvplus/player_config.php', params=params, headers=headers).json()
    
    hls_link = response['info']['file']
    print(hls_link)
    Image
    [Attachment 72053 - Click to enlarge]
    Thank you
    Quote Quote  



Similar Threads

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