Skip to content

Wrapper and extension of youtube-dl, that lets you manage downloading podcasts, scrape missing data such as date, title, description and rename podcasts to match a given template.

License

Notifications You must be signed in to change notification settings

radzak/rtv-downloader

Repository files navigation

rtv-downloader

Download videos from Ipla.tv, Vod and other Polish video platforms.

Supported video platforms

Getting Started

Prerequisites

Make sure you have ffmpeg installed, since sometimes it's necessary to convert the downloaded video to mp4 format.

You also need Python 3.6 or higher installed on your device.

Installation

To install RTVdownloader, simply use pipenv (or pip, of course):

pipenv install rtv-downloader

Usage example

in command-line

rtv https://vod.tvp.pl/video/warto-rozmawiac,30112017,34760315

You can also read links from text files

rtv -f urls.txt urls2.txt

Onetab support

demo

rtv -o https://www.one-tab.com/page/IgcP09iKQ6GjwDpS-qxKbQ

as a Python package

from rtv import RTVdownloader

urls = ['https://www.ipla.tv/wideo/news/Gosc-Wydarzen/5007380/Gosc-Wydarzen-Pawel-Adamowicz/090c6a4705c443633df966d648040a8a']

rtv = RTVdownloader()
rtv.load(urls)
rtv.download()

You can easily inspect the data of the video

video = rtv.videos[0]

>>> video.data
{
  'date': datetime.datetime(2018, 2, 21, 0, 0),
  'ext': 'mp4',
  'showname': 'Gość Wydarzeń',
  'site': 'ipla.tv',
  'title': 'Gość Wydarzeń - Paweł Adamowicz',
  'url': 'http://redirector.redefine.pl/vm2movies/4homg3f3s1x3t5az2pgsijatktx5c9hn.mp4'
}

Development setup

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

git clone https://github.com/radzak/rtv-downloader.git
cd rtv-downloader
pipenv install --dev
pipenv shell

Running the tests

You can run tests with setup.py

python setup.py test

or with pytest directly

pytest

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Wrapper and extension of youtube-dl, that lets you manage downloading podcasts, scrape missing data such as date, title, description and rename podcasts to match a given template.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published