Perun

From Personal wiki
Revision as of 10:45, 8 April 2022 by A a (talk | contribs) (add updatefeeds.sh)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LXC container, connected to the internet and used for downloading everything. It has readwrite access to relevant mountpoints and has wget, youtube-dlp and lftp as download software installed.

/video/lectures/updatefeeds.sh

Completely automatic ETHZ-video lecture recording downloader. It reads dir;url lines from urls.csv where dir is a directory under /video/lectures and link is a RSS feed of an ETHZ video lecture series. It fetches the RSS feed through the feed2exec python module, that converts every item to a csv line. Those are internally interpreted to extract the published date in %Y-%m-%d format and the video url is then downloaded to {dir}/%Y-%m-%d.mp4. It prints a last line reporting the work done : amount of feeds fetched, files detected (which are mentioned in the feeds but also already downloaded) and new files downloaded.