twitch-dl/docs/commands/clips.md
2022-03-13 14:11:59 +01:00

2.5 KiB

twitch-dl clips

List or download clips for a channel.

USAGE

twitch-dl clips <channel_name> [FLAGS] [OPTIONS]

ARGUMENTS

<channel_name> Name of the channel to list clips for.

FLAGS

-a, --all Fetch all videos, overrides --limit
-j, --json Show results as JSON. Ignores --pager.
-d, --download Download all videos in given period (in source quality)

OPTIONS

-l, --limit Number of videos to fetch (default 10, max 100)
-P, --period Period from which to return clips. Defaults to all_time. Possible values: last_day, last_week, last_month, all_time.
-p, --pager Number of clips to show per page. Disabled by default.

Listing clips

By default returns top 10 clips of all time.

twitch-dl clips bananasaurus_rex

Increase the number of clips returned.

twitch-dl clips bananasaurus_rex --limit 50

Return all clips, may require multiple requests, see notes.

twitch-dl clips bananasaurus_rex --all

Return clips from past day/week/month by changing the period:

twitch-dl clips bananasaurus_rex --period past_week

List all clips, 10 clips at the time:

twitch-dl clips bananasaurus_rex --pager

Print clips data in JSON. Useful for scripting.

twitch-dl clips bananasaurus_rex --json

Download all clips of the past week, won't overwrite exisitng ones:

twitch-dl clips bananasaurus_rex --download --period last_week

Notes

Clips are fetched in batches no larger than 100. When requesting more than 100 clips, it takes more than one request so it can take a little time. You can see individual requests by passing the --debug flag.

Currently it doesn't seem to be possible to get a list of clips ordered by time of creation, only by view count. Clips with the same view count seem to be returned in random order. This can break paging resulting in duplicate clips listed or clips missed.