/dl

A tool and core to download videos from your terminal

Primary LanguageGoMIT LicenseMIT

A tool and core to download videos from your terminal

❗️ Install (CLI tool):

Arch based:

git clone https://aur.archlinux.org/dl.git
cd dl
makepkg -si

Using AUR Helper:

yay -S dl

 

Others:

git clone https://github.com/z3oxs/dl
cd dl/cli/
make install

 

🚀 Usage:

Downloading a video from Twitter:

dl -u "https://twitter.com/USER/status/SOMESTATUS"

As you can see, you need to only parse the video URL with "-u" flag.

 

Download a video and parsing a custom filename and path:

dl -u "https://twitter.com/USER/status/SOMESTATUS" -p "some/path/video.mp4"

 

📘 Docs (Core)

First, install the package:

go get github.com/z3oxs/dl

 

Making a twitter video information request:

package main

import (
    "fmt"

    "github.com/z3oxs/dl/modules/twitter"
)

func main() {
    // Will get all video information
    video, err := twitter.GetVideo("VIDEOURL")
    if err != nil {
        panic(err)

    }

    // Will print the video URL
    fmt.Println(video.Formats[0].URL)

Available modules

  • Twitter
  • Facebook
  • Rumble

  If you want to contribute, make a issue requesting a new module or a pull request implementing a new module