Skip to content

meshstyles/bash_downloaders

Repository files navigation

bash_downloaders

these are several downloaders written in bash

supported pages

  • archive.org
  • gofile.io
  • netzkino.de
  • pluto.tv
  • tiktok
  • twitter

how to use this

  1. take a look at the releases tab
  2. download the script
  3. read the script or build it yourself from modules
  4. make it runnable for example with chmod 700 media_dl.sh
  5. run it with ./media_dl.sh "link_to_supported_website"

For more infos consult the readme of each module if there is anything specific to note

how to build

run ./build.sh in the main directory of the repository

dependencies

please add dependencies here as you go

  • pup
  • jq
  • curl
  • wget
  • bash
  • more gnu/linux tools you should already have installed

supported pages

  • tiktok (direct video link only)
  • netzkino.de (several types of movies)
  • twitter (single post with text in json form)
  • pluto (tv-live rec / ondemand content)
  • archive.org (entire listing except autogenerated files)

how to develop extensions

  • create a new folder
  • create a script.sh in that folder
  • create a self contained download script here that follows the following specifications
    • the script should only need one argument which is the link to the content
    • the link used in the downloader is a variable called link
    • if a useragent is user it should be a variable called useragent
    • there needs to be a url for which the module supports. it needs to be only one link.
    • the link should be denoted like #link "url.domain/" or #link "url.domain/videos"
    • set up link, useragent and the applicable link filter in your self contained script before #cutoff
    • after #cutoff should the fully working and fully self contained part which only rely on link and useragent
  • create a new branch and put in a pull request if you want to contribute

dev dependencies

  • the script is for bash so you need bash and the default tools
  • dos2unix since some files might be formatted the wrong way

upcoming

  • a better readme
  • debian setup script (maybe)