VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Hello,

    I need your help

    I can't understand how to download this video from : https://squareone.chrisbeatcancer.com/detox5-vm-rw/

    I tried with cookie, refferer ... i can't find master.json or another link

    Thanks in advance
    Quote Quote  
  2. Member
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Originally Posted by aqzs View Post
    thanks man .

    Share the tip with us

    YT-DLP ?
    Quote Quote  
  3. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Code:
    import urllib.request
    import requests
    
    res = []
    name = input("Name: ")
    jsonurl = input("JSON link: ")
    content = requests.get(jsonurl).json()
    heights = [video['height'] for video in content['video']]
    ids = [video['id'] for video in content['video']]
    res = list(map(int, heights))
    max_height_index = res.index(max(res))
    id = ids[max_height_index]
    if "playlist.json" in jsonurl:
        head, sep, tail = jsonurl.partition("/v2/")
    elif "master.json" in jsonurl:
        head, sep, tail = jsonurl.partition("/sep/")
    else:
        print("Wrong link")
    url = head + "/parcel/video/" + id + ".mp4"
    print(url)
    new_file = name + ".mp4"
    urllib.request.urlretrieve(url, new_file)
    In dev tool search for .json and copy the link :
    Image
    [Attachment 82052 - Click to enlarge]
    Quote Quote  
  4. Member
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Thanks man
    Merci mec
    Quote Quote  
  5. yt-dlp "https://squareone.chrisbeatcancer.com/detox5-vm-rw/"


    this works
    Quote Quote  



Similar Threads

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