GithubHelp home page GithubHelp logo

ard-downloader's Introduction

ard-downloader

About:

This is a small CLI utility written in python 3.9 to conveniently download evening news segments from the ARD (largest German public broadcasting network) news archive.

Requirements:

  • requests (for making HTTP requests)
  • beautifulsoup4 (for parsing HTML data)
  • pandas (to conveniently read and write CSV data)

Install via a python package manager of your choice.

Usage:

  1. (optional) Run get_links.py to update the list of links to the daily news segments. The archive goes back to April 1st 2007 with some entries missing.
  2. Run save_videos_from_file.py like so:

$ save_videos_from_file.py <input_file> <column> [quality] [start] [stop]

Column is the column in the provided CSV file that should be downloaded. The last 3 parameters are optional. If no quality is given, the lowest quality will be selected for each video (~50 MB for a 30 minute segment). If a video is not available in the selected quality, the highest available quality will be chosen. In practice, this often means only one quality is available, which is usually the lowest. Hence, the "highest available" quality is nothing else than the lowest quality.

start and stop can be used to specify which of the rows of the input file to download. Both support negative indexing! If left blank, all rows will be downloaded.

The saved videos will be stored in the following directory format:

show_title/year/month/show_title-year-month-day.mp4

Feel free to fork and improve the project!

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.