Hello.

I have been attempting to find a way to automate the generation of m3u8 URLs from streaming sites which require you to click on the video player to initiate loading the media.

I’ve found some information relating to Selenium, but haven’t used that before and haven’t had any success so I’m not sure if there are other solutions.

I’d considered generating URLs for successive videos based on apparent naming conventions, iterating over them to access one at a time, [figure out how to automatically initiate the video so the m3u8 requests get made], capture the m3u8 URL, initiate download with that URL and name each appropriately with something like yt-dlp’s autonumber.

I’ve figured out and tested options for most of these steps, but I haven’t had luck with the automated loading/initiation of the video stream in order to load the m3u8 requests. I’m still doing that step manually.

My laptop is crazy old and struggles to play video in a browser, seemingly it fills up its memory and it has crashed before. So I grab the m3u8 URLs to either load them into a local media player for streaming or download them for later, the latter especially if my internet connection is struggling as it often does.

Any advice or direction is greatly appreciated.

Thank you very much!

  • herseycokguzelolacak@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    23 days ago

    This is not easy, so if you figure it out do please open source it so others can benefit too :)

    I usually use VideoDownloadHelper addon in Firefox to get the download url, and then use yt-dlp to download it. However, this still requires me to navigate the page.