VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 40 of 40
  1. now work fine. no error 403. this site is a mess! however thanks for your tip @lomero
    Quote Quote  
  2. Good morning, my friends. The site has changed address now, it is streamingunity.co. I've modified a little cedric's script to adapt to this new site address, that is

    import requests
    import json
    import re
    import subprocess
    from bs4 import BeautifulSoup

    # Fonction pour récupérer l'URL m3u8
    def get_ep(playerid, episodeId=None):
    headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
    'Referer': 'https://vixcloud.co'
    }
    if episodeId:
    params = {'episode_id': episodeId}
    response = requests.get(f'https://streamingunity.co/iframe/{playerid}', headers=headers, params=params)
    else:
    response = requests.get(f'https://streamingunity.co/iframe/{playerid}', headers=headers)

    soup = BeautifulSoup(response.text, 'html.parser')
    iframe_tag = soup.find('iframe', {'ref': 'iframe'})

    if iframe_tag:
    iframe_src = iframe_tag.get('src')
    response = requests.get(iframe_src, headers=headers)

    # Récupération des informations nécessaires (URL, token, expires)
    matches = {
    'url': r"url: '([^']+)'",
    'token': r"'token': '([^']+)'",
    'expires': r"'expires': '([^']+)'"
    }
    m = {}
    for match, regex in matches.items():
    mm = re.search(regex, response.text)
    if mm:
    m[match] = mm.group(1)
    else:
    print(f"{match} not found")

    if all(key in m for key in ['url', 'token', 'expires']):
    m3u8_url = f"{m['url']}?token={m['token']}&expires={m['expires']}&h=1"
    return m3u8_url
    else:
    print("Required keys are missing from the iframe response.")
    return None
    else:
    print("No iframe tag found")
    return None

    # Fonction pour récupérer les saisons et épisodes
    def get_season(page_url):
    headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
    'Referer': 'https://vixcloud.co'
    }

    response = requests.get(page_url, headers=headers)
    soup = BeautifulSoup(response.text, 'html.parser')

    app_div = soup.find('div', {'id': 'app'})
    if app_div and 'data-page' in app_div.attrs:
    data_page = app_div['data-page']
    data_page_json = json.loads(data_page) # Utilisation de json.loads pour convertir en JSON
    title = data_page_json['props']['title']['name']
    playerid = data_page_json['props']['title']['id']
    type = data_page_json['props']['title']['type']

    if type == 'movie':
    name_base = sanitize_filename(title)
    m3u8_url = get_ep(playerid)
    download_video(m3u8_url, name_base)
    else:
    season = data_page_json['props']['loadedSeason']
    if season:
    snumber = season['number']
    for episode in season['episodes']:
    enumber = episode['number']
    name = episode['name']
    episodeId = episode['id']
    m3u8_url = get_ep(playerid, episodeId)
    name_base = sanitize_filename(f"{title} S{str(snumber).zfill(2)}E{str(enumber).zfill(2)} {name}")
    download_video(m3u8_url, name_base)
    else:
    print("No data-page attribute found in the div with id 'app'")

    # Fonction pour nettoyer les noms de fichiers
    def sanitize_filename(name):
    return re.sub(r'[\\/*?:"<>|]', "", name)

    # Fonction pour télécharger la vidéo avec N_m3u8DL-RE
    def download_video(url, output_name_base):
    output_file = f"{output_name_base}.mp4"

    command = [
    'N_m3u8DL-RE',
    url,
    '--header', 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
    '--header', 'Referer: https://vixcloud.co',
    '--save-name', output_name_base,
    # '--tmp-dir', 'D:\',
    # '--save-dir', 'D:\',
    '-sv', 'best',
    '-sa', 'all',
    '-ss', 'all',
    '-M' ,'format=mp4',
    ]

    try:
    subprocess.run(command, check=True)
    print(f"Téléchargement et muxage terminé pour : {output_file}")
    # except FileNotFoundError:
    # print("N_m3u8DL-RE n'est pas installé ou n'est pas dans le PATH.")
    except subprocess.CalledProcessError as e:
    print(f"Erreur lors du téléchargement : {e}")

    # Exemple d'URL à traiter
    urls = [
    "https://streamingunity.co/it/titles/6116-kindred"
    ]

    for url in urls:
    get_season(url)

    The series to downloaded is Kindred. When I launch the script, anyway, I get the following error
    No iframe tag found
    Traceback (most recent call last):
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\cedric.py", line 122, in <module>
    get_season(url)
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\cedric.py", line 82, in get_season
    download_video(m3u8_url, name_base)
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\cedric.py", line 109, in download_video
    subprocess.run(command, check=True)
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\Lib\subprocess.py", line 1462, in _execute_child
    args = list2cmdline(args)
    ^^^^^^^^^^^^^^^^^^
    File "D:\XXX\Winpython\WPy64-31241\python-3.12.4.amd64\Lib\subprocess.py", line 608, in list2cmdline
    for arg in map(os.fsdecode, seq):
    File "<frozen os>", line 859, in fsdecode
    TypeError: expected str, bytes or os.PathLike object, not NoneType[/CODE] Moreover, I've noticed that links to videos are of the type https://vod-149347.vixcloud.co/embed/149347?token=dec1285a59cc356ae9526c6dbb52a08d&t=S...1&canPlayFHD=1, so it suggests maybe the row 'Referer': 'https://vixcloud.co' should be modified.
    Any help? Thank you very, very much, in advance, for all kind and precious advices. Have a nice day
    Quote Quote  
  3. The site has changed address now, it is streamingunity.co

    not true. link is streamingcommunityz.cz
    try to edit script with right link

    anyway (not tested cedric script) this site it's easy to do: use stream detector plus to find right url, then download with N_m3u8DL-RE (or yt-dlp too)
    Quote Quote  
  4. Thank you very much, lomero, for answer. Anyway, when I logged into site, I got a message telling to move to streamunity.co, as for registered used the page is more stable, so I moved to it. I've tested stream detector plus, but using either N_m3u8DL-RE or yt-dlp, I get a message of error 403 (forbidden) all the time.
    Last edited by misiek1963; 29th Sep 2025 at 09:49.
    Quote Quote  
  5. i'm not registered user so idk. but link streamingcommunityz.cz work fine, also stream detector plus work on this url. so use this instead

    also: if load streamunity.co into address bar, my browser go to https://www.hyperke.com/ ... are you sure this is your real link ??

    Image
    [Attachment 88975 - Click to enlarge]


    also i know that registered users are allowed to download the video. so if you are a registered user i don't understand your request here ... all very strange ...
    Quote Quote  
  6. Thank you so much, lomero, for answer. I apologize very much, my mistake, the site is streamingunity.com. Fot what concerns registered users, I'm registered free user so I'm not allowed to download. I'm able to find m3u8 url, using chrome console, video download helper or the stream detector plus, too, anyway, downloading with N_m3u8DL-RE or yt-dlp I get a forbidden (403) error all the time, only cedric's script didn't always produce such error. The same problem arises if I use streamingcommunityz.cz
    Quote Quote  
  7. this is from streamingunity.com ....

    Image
    [Attachment 88999 - Click to enlarge]


    from streamingcommunityz.cz (now streamingcommunityz.at) work fine stream detect plus ext and RE
    Quote Quote  
  8. This is what I get:
    C:\Windows\system32>d:\biblioteca\N_m3u8DL-RE\N_m3u8DL-RE https://vod-149354.vixcloud.co/playlist/149354?type=subtitle&rendition=auto-forced&tok...sc-u2-01&scz=1 -M format=mp4 --tmp-dir "d:\WebDL\TVP" --save-dir "d:\WebDL\TVP" --save-name "prova"
    09:25:43.150 INFO : N_m3u8DL-RE (Beta version) 20241201
    09:25:43.260 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:44.176 WARN : Response status code does not indicate success: 403 (Forbidden). (1/10)
    09:25:45.703 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:46.021 WARN : Response status code does not indicate success: 403 (Forbidden). (2/10)
    09:25:47.538 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:47.831 WARN : Response status code does not indicate success: 403 (Forbidden). (3/10)
    09:25:49.383 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:49.701 WARN : Response status code does not indicate success: 403 (Forbidden). (4/10)
    09:25:51.217 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:51.408 WARN : Response status code does not indicate success: 403 (Forbidden). (5/10)
    09:25:52.921 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:53.403 WARN : Response status code does not indicate success: 403 (Forbidden). (6/10)
    09:25:54.904 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:55.153 WARN : Response status code does not indicate success: 403 (Forbidden). (7/10)
    09:25:56.667 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:56.912 WARN : Response status code does not indicate success: 403 (Forbidden). (8/10)
    09:25:58.418 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:25:58.638 WARN : Response status code does not indicate success: 403 (Forbidden). (9/10)
    09:26:00.148 INFO : Loading URL: https://vod-149354.vixcloud.co/playlist/149354?type=subtitle
    09:26:00.357 WARN : Response status code does not indicate success: 403 (Forbidden). (10/10)
    09:26:01.942 ERROR: Failed to execute action after 10 retries.
    'rendition' is not recognized as an internal or external command,
    operable program or batch file.
    'token' is not recognized as an internal or external command,
    operable program or batch file.
    'expires' is not recognized as an internal or external command,
    operable program or batch file.
    'edge' is not recognized as an internal or external command,
    operable program or batch file.
    'scz' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Windows\system32>
    Quote Quote  
  9. Thank you very, very much, lomero, for answer and precious advices. I've made as you said and i works. Thank you very much, again, for all your help. Have a nice day
    Quote Quote  



Similar Threads

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