VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. got
    Last edited by Vortexy; 23rd Aug 2025 at 01:01. Reason: got a solution
    Quote Quote  
  2. got
    Last edited by Vortexy; 23rd Aug 2025 at 01:01. Reason: got a solution
    Quote Quote  
  3. It was a pain to log in because I had to brute force some weird card number but I got it working.
    The HLS URL can only be used once and is embedded inside the site's HTML.
    To use the code below, enter your video URL from the address bar and the value of your sessionid cookie.
    Code:
    import re
    
    import requests
    
    if __name__ == '__main__':
        response = requests.get(
            url='https://ap.lk/watch-video/<VIDEO ID>',
            cookies={
               'sessionid': '<sessionid token value>'
            }
        )
    
        print(response.status_code)
    
        hls_url = re.search(
            r"'(https://video.ap.lk/stream/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})'",
            response.text
        ).group(1)
    
        auth_token = re.search(
            r"'([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})'",
            response.text
        ).group(1)
    
        print(hls_url)
        print(auth_token)
    
        print(f"N_m3u8DL-RE \"{hls_url}\" -H \"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0\" -H \"SD-Analyze: {auth_token}\" -H \"Origin: https://ap.lk\"")
    Bypass HMACs, One-time-tokens and Lic.Wrapping: https://github.com/DevLARLEY/WidevineProxy2
    Quote Quote  



Similar Threads

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