VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hi, can someone please tell me how I can download live stream from this site: https://www.pandalive.co.kr? I tried many ways, like ffmpeg, yt-dlp, N_m3u8DL-RE, Streamlink, but the same error happens, I get the m3u8 link and I always get error 403. I am using The Stream Detector extension, Firefox, Windows 11. I posted pictures of my attempts.

    yt-dlp:

    Image
    [Attachment 81874 - Click to enlarge]


    ffmpeg:

    Image
    [Attachment 81875 - Click to enlarge]


    N_m3u8DL-RE:

    Image
    [Attachment 81876 - Click to enlarge]


    Streamlink:

    Image
    [Attachment 81877 - Click to enlarge]
    Quote Quote  
  2. Member
    Join Date
    Mar 2021
    Location
    Israel
    Search Comp PM
    Try TubeDigger.
    This singer scared the hell out of me. The audio was so high.
    https://www.pandalive.co.kr/live/play/may333
    Quote Quote  
  3. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    That is an issue related to headers.. You need -H 'Origin: https://www.pandalive.co.kr' parameters and a fresh manifest each time.
    https://gofile.io/d/zaQlP8

    HTML Code:
    import requests
    
    def getcmd(userId):
        headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',}
        data = {'action': 'watch','userId': userId,'password': '','shareLinkType': ''}
        response = requests.post('https://api.pandalive.co.kr/v1/live/play', headers=headers, data=data).json()
        hls_url = response['PlayList']['hls'][0]['url']
        print(f"""N_m3u8DL-RE '{hls_url}' -H 'Origin: https://www.pandalive.co.kr'""")
    
    liveurl = input('Enter the live url: ')
    userId = liveurl.split('/')[-1]
    getcmd(userId)
    Edit the command as you want if you want to use streamlink or others.. but make sure to keep the header.
    Last edited by aqzs; 31st Aug 2024 at 14:03.
    Quote Quote  
  4. streamlink --http-header Origin=https://www.pandalive.co.kr "https://video-weaver.arn04.hls.live-video.net/v1/playlist/CoYGOOsMYLepAKs02KbRjzIaArJiGG_DLHG3BHmxHnZt9i5daS AippksOHcbu6heyEZaGg4qh9KbYnWbwCtgI8Z8NVkA-q7N4we0ba8_WbmlJnpg_3LYMZEwQhokvXGEWiFKpEeDifsiyzU 14OuZQah5uOpEIjHsvBFQ1fOXCeYYObvE79i5svlz5MMneQcfG 09KqT7tx9CFdAkiCnBFbByyIljdGkbmCwkYYNcx7zGMGGDzk16 dOULI6hh6wTSl6rlYRIKZvEiz1wRApnEqxEq3PdRvdg2YVofyr iJfBnnrNAE6pLGF2zpcW7_CRnoIo6prQFKCHaiM3DbjLhmbULr 4jGuHezF2H82hGGpyaLc1WPJ7ubDc4IKV_JHpMktX1CMznlx4-aLr3najBIxuncUs3hVMkQopR1yXFCBwHVhoi5E0vTZr5QvMNDi kLeqp3hCq1fjtpk_ovjFagGAGko03ss82yIghTpqOAavVo2zgW 4vFz4dMvE9EFRBrXA4yJomzyWvx5_Uzv8DaBEqdXxvGbFVaA7g qdfG3v0yQx8bOBMfxd5tCVQow2BRQlEgd-c_-dM2-KmQjRWkoEVcWoDI5XsGrJMYEtH8qSBesh2w186Qw5f9dr73R0B mqWSXRWccOJtWsovsKriRgUiXI5NsJUDlEfFUykFXlEYJwMMrZ wnIFzUysnzNk5VpZ26Gonoc4KaS7OlRDZrl9XTBnev-U4nrV9pk5vG09ujwUn42TE8mtvnhzixBnyj_4eZfPaaASq2pS_ O79zhWNomPxj_oEGQK1ZQbFLkm7EQGVODsKm9ZRaauUG6Kceaf PFke5qCUkaJuV2eyuTr1CfZ71sOMlLnj5eTDFCasPFmWqP4r_d D_F9VkJeJiQbzH-zD3hiDdnkmiS92PCxc88J5WF65mgRMSngWPFe4KrVYckazTZAJ Vddn0mdYGM3HicUAjrPRFqkuIM7Po5P9Wde0YgFeFHroeObiUg 6XX0PtYX-pLpPpGyq12UyhKZwz6TEp1xQ-eVntYdYn9DGgxwUMhe7GMZj8AgPBogASoJZXUtd2VzdC0yMKMK .m3u8" best -o video.ts
    [cli][info] Found matching plugin hls for URL https://video-weaver.arn04.hls.live-video.net/v1/playlist/CoYGOOsMYLepAKs02KbRjzIaArJi...zdC0yMKMK.m3u8
    [cli][info] Available streams: live (worst, best)
    [cli][info] Opening stream: live (hls)
    [cli][info] Writing output to
    C:\Users\X\Desktop\video.ts
    [download] Written 9.33 MiB to C:\Users\A\Desktop\video.ts (19s @ 491.90 KiB/s)
    ...
    Quote Quote  
  5. Originally Posted by aqzs View Post
    That is an issue related to headers.. You need -H 'Origin: https://www.pandalive.co.kr' parameters and a fresh manifest each time.
    https://gofile.io/d/zaQlP8

    HTML Code:
    import requests
    
    def getcmd(userId):
        headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',}
        data = {'action': 'watch','userId': userId,'password': '','shareLinkType': ''}
        response = requests.post('https://api.pandalive.co.kr/v1/live/play', headers=headers, data=data).json()
        hls_url = response['PlayList']['hls'][0]['url']
        print(f"""N_m3u8DL-RE '{hls_url}' -H 'Origin: https://www.pandalive.co.kr'""")
    
    liveurl = input('Enter the live url: ')
    userId = liveurl.split('/')[-1]
    getcmd(userId)
    Edit the command as you want if you want to use streamlink or others.. but make sure to keep the header.
    I was wondering if you would be willing to explain how you found the options for pandalive's api?
    I have been attempting to google and search on naver but I cannot seem to find any documentation whatsoever.
    It doesn't help that I do not speak Korean.
    I am attempting to write a script that automatically records a certain streamer on pandalive.
    This site is incredibly tricky to scrape it seems, but I have access to an account.
    I was previously able to simply pass cookies that I had in Firefox to streamlink through the --http-cookie part of Streamlink, but that has recently stopped working.
    It seems that they have changed something so I have to pass it new cookies every time, meaning that this script can not run 24/7 without my input and having to manually input a captcha.
    Would appreciate any and all information you have on this site.
    Quote Quote  



Similar Threads

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