Public
Authored by Nathanaël 💩

Get PeerTube videos

This script uses PeerTube API to return a list of video url.

Usage: get_peertube_videos_urls.py <peertube server url> [tags...]

Examples:

Download (using youtube-dl) all local videos of a given instance:

for url in $(./get_peertube_videos_urls.py https://www.videos-libr.es) ; do youtube-dl -f 240p "$url"; done

Note: 240p refers to the video format that you can get with youtube-dl -F <video_url>.

Download all local videos of an instance corresponding to given tags:

for url in $(./get_peertube_videos_urls.py https://www.videos-libr.es JDLL2016 JDLL2017 JDLL2018) ; do youtube-dl -f 240p "$url"; done
get_peertube_videos_urls.py 1.03 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment