twitch-dl/docs/commands/videos.md

96 lines
2.0 KiB
Markdown
Raw Normal View History

2022-02-23 20:54:56 +00:00
<!-- ------------------- generated docs start ------------------- -->
# twitch-dl videos
2024-03-26 09:05:21 +00:00
List or download clips for given CHANNEL_NAME.
2022-02-23 20:54:56 +00:00
### USAGE
```
2024-03-26 09:05:21 +00:00
twitch-dl videos [OPTIONS] CHANNEL_NAME
2022-02-23 20:54:56 +00:00
```
2024-03-26 09:05:21 +00:00
### OPTIONS
2022-02-23 20:54:56 +00:00
<table>
<tbody>
<tr>
<td class="code">-a, --all</td>
2024-03-26 09:05:21 +00:00
<td>Fetch all clips, overrides --limit</td>
2022-02-23 20:54:56 +00:00
</tr>
2022-08-18 08:03:40 +00:00
<tr>
<td class="code">-c, --compact</td>
<td>Show videos in compact mode, one line per video</td>
</tr>
2022-02-23 20:54:56 +00:00
2024-03-26 09:05:21 +00:00
<tr>
<td class="code">-l, --limit INTEGER</td>
<td>Number of videos to fetch. Defaults to 40 in compact mode, 10 otherwise.</td>
</tr>
2022-02-23 20:54:56 +00:00
<tr>
2024-03-26 09:05:21 +00:00
<td class="code">-p, --pager INTEGER</td>
<td>Number of videos to show per page. Disabled by default.</td>
2022-02-23 20:54:56 +00:00
</tr>
<tr>
2024-03-26 09:05:21 +00:00
<td class="code">-g, --game TEXT</td>
<td>Show videos of given game (can be given multiple times)</td>
2022-02-23 20:54:56 +00:00
</tr>
<tr>
2024-03-26 09:05:21 +00:00
<td class="code">-s, --sort TEXT</td>
<td>Sorting order of videos Possible values: <code>views</code>, <code>time</code>. [default: <code>time</code>]</td>
2022-02-23 20:54:56 +00:00
</tr>
<tr>
2024-03-26 09:05:21 +00:00
<td class="code">-t, --type TEXT</td>
<td>Broadcast type Possible values: <code>archive</code>, <code>highlight</code>, <code>upload</code>. [default: <code>archive</code>]</td>
2022-02-23 20:54:56 +00:00
</tr>
<tr>
2024-03-26 09:05:21 +00:00
<td class="code">--json</td>
<td>Print data as JSON rather than human readable text</td>
2022-02-23 20:54:56 +00:00
</tr>
</tbody>
</table>
<!-- ------------------- generated docs end ------------------- -->
### Examples
List recent channel videos (10 by default):
```
twitch-dl videos bananasaurus_rex
```
Limit to videos of one or more games:
```
twitch-dl videos --game "doom eternal" --game "cave story" bananasaurus_rex
```
List all channel videos at once:
```
twitch-dl videos bananasaurus_rex --all
```
List all channel videos in pages of 10:
```
twitch-dl videos bananasaurus_rex --pager
```
Page size can be adjusted by passing number of items per page:
```
twitch-dl videos bananasaurus_rex --pager 5
```
Returns all videos as a JSON list. Useful for scripting.
```
twitch-dl videos bananasaurus_rex --json --all
```