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
+ Reply to Thread
Results 1 to 11 of 11
-
Last edited by ghostrewel; 13th Jun 2023 at 14:59.
-
[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}')
-
Which program and command
you using?Forbidden HTTP Error 403 is the result...Last edited by ghostrewel; 13th Jun 2023 at 00:44.
-
Anonymous9875434Guest
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 -
no problem
[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])
Similar Threads
-
Download how to download this download (m3u8)
By Starxx in forum Video Streaming DownloadingReplies: 34Last Post: 15th Aug 2023, 17:51 -
Download videos from a course app that doesn't allow to download videos?
By solarjunk in forum Video Streaming DownloadingReplies: 2Last Post: 3rd Jun 2023, 06:30 -
A GUI to download bulk download files through their respective M3U8 links
By UNforces885 in forum Video Streaming DownloadingReplies: 4Last Post: 4th May 2023, 14:04 -
Download HLS. error 400 to download keys
By naturalc in forum Video Streaming DownloadingReplies: 28Last Post: 28th Oct 2022, 08:13 -
How to download from zee5 site and download mpd link
By qasem1368 in forum Video Streaming DownloadingReplies: 7Last Post: 25th Nov 2021, 21:28