Giter Club home page Giter Club logo

ivysilani-mpd-extractor's Introduction

iVysilani MPD extractor

Czech disclaimer: V případě problému prosím založte issue, pro běh skriptu stačí nainstalovat Selenium packge a skript pustit.

This program extracts the .mpd file from a given iVysilani (ceskatelevize.cz) URL using Selenium. This .mpd file then may be used to download the video via various tools.

Feel free to open an issue or create a PR.

Install

Install Python and install Selenium Python package, either by pip install selenium or run pip install -r requirements.txt

Usage

Run python extract.py.

There are two optional arguments:

  • -u, --url <URL> - runs the program directly on a given URL, otherwise the program asks for the URL
  • -d, --download - if present, downloads the video with yt-dlp, assuming yt-dlp is in PATH (or any other env vars)
  • -n, --no-headless - runs the program without the --headless option in Chrome, this means the program will create a Chrome testing tab, which is otherwise hidden, sometimes needed for videos

The .mpd link might be used in various tools enabling video downloads from the manifest files, e.g. yt-dlp or VLC. For yt-dlp, just run yt-dlp <mpd_URL>.

Troubleshooting

If the MPD list is empty, try changing the waiting times and/or the CDN link (the current one can be found in the Networks tab in developer console). Also, for some series or movies, the --no-headless flag must be provided, otherwise it is not possible to get the .mpd.

If there are any issues with elements, try changing the XPath or CSS selectors.

If you are not a developer or the problem is not listed here, please let me know what the problem is and open an issue.

ivysilani-mpd-extractor's People

Contributors

luk27official avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.