Hi Forum, I need python script to get m3u8-link from thise site: https://www.bgonair.bg/tvonline
Thanks
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 3 of 3
-
-
Code:
import re import requests SITE_URL = "https://www.bgonair.bg/tvonline" pattern = r'src="//([^/]+)/live/([^"]+)"' matched_url = re.findall(pattern, requests.get(SITE_URL).text)[0] live_url = f"https://{matched_url[0]}/live/{matched_url[1]}" pattern = r'src="//.*?/playlist\.m3u8(?:\?[^"]+)?"' matched_url = re.search(pattern, requests.get(live_url).text).group(0) m3u8_url = "https:/" + matched_url[6:-1] print("M3U8:", m3u8_url)
Code:M3U8: https://lb-hls.cdn.bg/2006/fls/bonair.stream/playlist.m3u8?at=d4b2a92264e3297adc2bf78f720af6ef
Last edited by 2nHxWW6GkN1l916N3ayz8HQoi; 12th Feb 2024 at 06:17. Reason: Changed the detection for live_url to be more general considering that only /live/ is fixed
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
Similar Threads
-
correct my python script downloader
By swappyison in forum Video Streaming DownloadingReplies: 30Last Post: 6th Aug 2024, 17:33 -
Need Python script for this stream
By kayrak in forum Video Streaming DownloadingReplies: 6Last Post: 17th Sep 2023, 12:10 -
need a python script that can automate the process
By swappyison in forum Video Streaming DownloadingReplies: 0Last Post: 2nd Aug 2023, 10:11 -
please python script for m3u8
By kayrak in forum Video Streaming DownloadingReplies: 2Last Post: 26th Jun 2023, 08:26 -
anyone know if the following python script work ?
By DRMdec in forum Video Streaming DownloadingReplies: 2Last Post: 21st Feb 2023, 19:02