Skip to content
Snippets Groups Projects

VBrickRev downloader

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Jonah
    Edited
    vbrick.py 482 B
    #!/usr/bin/env python3
    
    import requests
    import sys
    import json
    
    video_id = sys.argv[1]
    password = sys.argv[2]
    
    metadata = requests.get(f"https://fu-berlin.eu.vbrickrev.com/media/videos/{video_id}", cookies={f"{video_id}-auth": password}, headers={
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0",
        "Accept-Language": "de,en-US;q=0.7,en;q=0.3"
    }).text
    
    metadata_dict = json.loads(metadata)
    
    print(metadata_dict["video"]["revDownloadUrl"])
    • wget $(./vbrick.py {video_id} {password})
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment