VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Nov 2014
    Location
    Germany
    Search Comp PM
    Hi folks!

    I could extract following links from a video from vimeo,here the extracted links:

    "https://f.vimeocdn.com","vimeo_api_url":"api.vimeo.com","r equest":{"files":{"dash":


    How can I catch these?

    Any help was great!!!

    Greetings,

    ghostrewel
    Last edited by ghostrewel; 13th Jun 2023 at 14:59.
    Quote Quote  
  2. If you've the URL to the video on Vimeo, use
    Code:
    yt-dlp URL
    Quote Quote  
  3. Image
    [Attachment 71674 - Click to enlarge]


    Code:
    import requests
    import json
    import re
    
    print('test link: https://neilyoungarchives.com/movietone/833850675\n')
    
    link = input('link: ')
    link_id = re.findall(r'neilyoungarchives.com/.*/(.*)', link)[0].strip()
    
    headers = {
        'Connection': 'keep-alive',
        'Referer': 'https://neilyoungarchives.com/',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    }
    
    params = {
        'autoplay': '0',
        'controls': '0"',
    }
    
    response = requests.get('https://player.vimeo.com/video/'+link_id+'', params=params, headers=headers).text
    
    get_json = re.findall(r'<script>window.playerConfig = ({.*)<\/script>', response)[0].strip()
    
    js_obj = json.loads(get_json)
    
    video_title = js_obj['video']['title']
    print(f'\ntitle:\n{video_title}\n')
    m3u8_url = js_obj['request']['files']['hls']['cdns']['akfire_interconnect_quic']['url']
    print(f'm3u8:\n{m3u8_url}')
    Quote Quote  
  4. Member
    Join Date
    Nov 2014
    Location
    Germany
    Search Comp PM
    M3u8 is Forbidden,another way to download the video?
    Quote Quote  
  5. works for me - normally and with a german vpn
    Quote Quote  
  6. Member
    Join Date
    Nov 2014
    Location
    Germany
    Search Comp PM
    Which program and command
    you using?Forbidden HTTP Error 403 is the result...
    Last edited by ghostrewel; 13th Jun 2023 at 00:44.
    Quote Quote  
  7. Anonymous9875434
    Guest
    https://56vod-adaptive.akamaized.net/exp=1686663635~acl=%2Ff89538de-ae34-4f36-a2f7-a0f...026f588db93bbb 37347cc24d471088c417bba2ee2d3962042702/f89538de-ae34-4f36-a2f7-a0f59dcd8eb7/sep/video/124c01a4,3f4d38cb,5b5f7549/audio/80bc1494,b269f417,da7d77db/master.mpd?base64_init=1&query_string_ranges =1

    you need to decode the unicode '\u0026' back to '&' and it should download fine.
    and master.json to master.mpd

    with a fresh link
    Quote Quote  
  8. Originally Posted by ghostrewel View Post
    M3u8 is Forbidden,another way to download the video?
    no problem
    Image
    [Attachment 71679 - Click to enlarge]


    Code:
    import requests
    import subprocess
    import json
    import re
    
    m3u8DL_RE = 'N_m3u8DL-RE.exe'
    
    print('test link: https://neilyoungarchives.com/movietone/833850675\n')
    
    link = input('link: ')
    link_id = re.findall(r'neilyoungarchives.com/.*/(.*)', link)[0].strip()
    
    headers = {
        'Connection': 'keep-alive',
        'Referer': 'https://neilyoungarchives.com/',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    }
    
    params = {
        'autoplay': '0',
        'controls': '0"',
    }
    
    response = requests.get('https://player.vimeo.com/video/'+link_id+'', params=params, headers=headers).text
    
    get_json = re.findall(r'<script>window.playerConfig = ({.*)<\/script>', response)[0].strip()
    
    js_obj = json.loads(get_json)
    
    video_title = js_obj['video']['title']
    print(f'\n{video_title}\n')
    
    m3u8_url = js_obj['request']['files']['hls']['cdns']['akfire_interconnect_quic']['url']
    print(f'm3u8:\n{m3u8_url}')
    
    print()
    subprocess.run([m3u8DL_RE,
                    '-M', 'format=mkv:muxer=ffmpeg',
                    '--del-after-done',
                    '--concurrent-download',
                    '--auto-select', 
                    '--log-level', 'INFO',
                    '--save-name', video_title,
                    m3u8_url])
    Quote Quote  
  9. Member
    Join Date
    Nov 2014
    Location
    Germany
    Search Comp PM
    Thank you all for the help!

    I could save the video now!!
    Quote Quote  



Similar Threads

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