Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matschik/vodtwitch
📼 Download any public vod from Twitch
https://github.com/matschik/vodtwitch
twitch
Last synced: about 2 months ago
JSON representation
📼 Download any public vod from Twitch
- Host: GitHub
- URL: https://github.com/matschik/vodtwitch
- Owner: matschik
- License: mit
- Created: 2020-11-14T20:51:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-14T02:35:49.000Z (about 2 years ago)
- Last Synced: 2024-09-02T00:55:55.548Z (4 months ago)
- Topics: twitch
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 13
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vodtwitch
> Download any public vod from Twitch
## Install
```bash
npm i -g vodtwitch
# pnpm add -g vodtwitch
```## Usage
### CLI
```sh
# with VOD ID
$ vodtwitch 787450673# private VOD using your OAuth token taken from Twitch when logged in
$ vodtwitch --token 0aze9batw2zc2tj29nl4mywkqgb1kn 787450673# you can specify an output directory
$ vodtwitch 787450673 -o my/best/vods# also works with VOD URL
$ vodtwitch https://www.twitch.tv/videos/787450673# more command options
$ vodtwitch -h
```It will save to your current directory as `{vodID}.ts`.
### NodeJS
```js
import vodtwitch from "vodtwitch";async function main() {
await vodtwitch(787450673, { outputDir: process.cwd() });
}main().catch(console.error);
```