i dont know @hizbf want what script, since it had given by Frieren, it is a python script, you can just copy and change chanel to 'video_id'. video_id is episode id you can see in the video url, and in browser develop mode(F12), fileter the endpoint 'https://user-api.mytvsuper.com/v1/video/checkout' by keyword 'checkout', click it and see request headers, you will find the api_token, it should a jwt token, looks like eyJhxxxxxxxxxxxxxxxxxxx long string:
Code:#!/usr/bin/env python import requests import json def get_mytvsuper(video_id, api_token): headers = { 'Accept': 'application/json', 'Authorization': 'Bearer ' + api_token, 'Accept-Language': 'zh-CN,zh-Hans;q=0.9', 'Host': 'user-api.mytvsuper.com', 'Origin': 'https://www.mytvsuper.com', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.2 Safari/605.1.15', 'Referer': 'https://www.mytvsuper.com/', 'X-Forwarded-For': '210.6.4.148' # 香港原生IP 210.6.4.148 } params = { 'platform': 'android_tv', 'video_id': video_id, } url = 'https://user-api.mytvsuper.com/v1/video/checkout' try: response = requests.get(url, headers=headers, params=params) response.raise_for_status() except requests.exceptions.RequestException as e: return f'请求失败: {e}' response_json = response.json() profiles = response_json.get('profiles', []) for profile in profiles: if profile.get('quality') == 'high': play_url = profile.get('streaming_path') break print(play_url) video_id = input('\ninput video ID: ') api_token = input('\ninput API TOKEN: ') get_mytvsuper(video_id, api_token)
+ Reply to Thread
Results 31 to 32 of 32
Similar Threads
-
Downloading videos from Jiocinema : Step by Step Guide
By sarvo99 in forum Video Streaming DownloadingReplies: 4Last Post: 23rd Mar 2024, 03:47 -
Beginners guide to downloading from UK broadcasters streaming sites
By pooksahib in forum Video Streaming DownloadingReplies: 7Last Post: 14th May 2023, 09:10 -
Mass downloading coursera courses?
By solarjunk in forum Video Streaming DownloadingReplies: 0Last Post: 30th Jan 2023, 07:11 -
FFMPEG Automation
By amsgh in forum Video Streaming DownloadingReplies: 3Last Post: 5th Nov 2021, 20:46 -
I am looking for a free Video Automation Playout software which one do you
By DJboutit in forum Newbie / General discussionsReplies: 0Last Post: 14th Apr 2020, 20:50