Discover Packages
github.com/jybp/twitch-downloader
package
module
Version:
v0.0.0-...-ef2fa16
Opens a new window with list of versions in this module.
Published: Jul 12, 2024
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
README
Documentation
Index
Constants
Variables
Functions
Download(ctx, client, clientID, vURL, quality, start, end)
Name(ctx, client, clientID, vURL)
Qualities(ctx, client, clientID, vURL)
Types
Source Files
Directories
README
README
¶
twitch-downloader
Easily download twitch VODs and Clips.
Usage
Download
You can download the latest release for Windows, Macos and Linux here:
https://github.com/jybp/twitch-downloader/releases
Flags
Flag
Description
-url
The URL of the twitch VOD or Clip to download.
-q
Quality of the video to download. Omit this flag to print the available qualities. Use "best" to automatically select the highest quality.
-o
Path where the video will be downloaded. (optional)
-start
Specify "start" to download a subset of the VOD. Example: 1h23m45s (optional)
-end
Specify "end" to download a subset of the VOD. Example: 1h34m56s (optional)
-client-id
Use a specific twitch.tv API client ID. Using any other client id other than twitch own client id might not work. (optional)
-v
Verbose errors. (optional)
Build from source
Install the latest version of Go https://golang.org/
Clone the git repository
Run go build -ldflags "-X main.defaultClientID=kimne78kx3ncx6brgo4mv6wki5h1ko" ./cmd/twitchdl
Expand ▾
Collapse ▴
Documentation
¶
func Download(ctx context.Context, client *http.Client, clientID, vURL, quality string, ...) (io.ReadCloser, error)
func Name(ctx context.Context, client *http.Client, clientID, vURL string) (string, error)
func Qualities(ctx context.Context, client *http.Client, clientID, vURL string) ([]string, error)
Download sets up the download of the VOD "vodId" with quality "quality"
using the provided http.Client.
The download is actually perfomed when the returned io.Reader is being read.
Name return the name of the video: Channel Name - Video name.
Qualities return the qualities available.
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.