{"id":20744303,"url":"https://github.com/f0903/twitch_archiver_cli","last_synced_at":"2025-10-08T15:33:54.630Z","repository":{"id":208003955,"uuid":"720607954","full_name":"F0903/twitch_archiver_cli","owner":"F0903","description":"A fast and tiny downloader for Twitch VODs (also sub-only). Simply pass in a url, and give it an optional output path with an extension of your choosing, which the video will then be converted to.","archived":false,"fork":false,"pushed_at":"2025-01-26T01:37:44.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T02:37:45.650Z","etag":null,"topics":["archive","cli","downloader","rust","twitch"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/F0903.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-19T02:07:03.000Z","updated_at":"2025-01-26T01:37:47.000Z","dependencies_parsed_at":"2023-11-19T03:19:53.984Z","dependency_job_id":"d5c2d8de-7f10-44bf-8342-98f36f4e9534","html_url":"https://github.com/F0903/twitch_archiver_cli","commit_stats":null,"previous_names":["f0903/twitch_archiver_cli"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0903%2Ftwitch_archiver_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0903%2Ftwitch_archiver_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0903%2Ftwitch_archiver_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0903%2Ftwitch_archiver_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/F0903","download_url":"https://codeload.github.com/F0903/twitch_archiver_cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243039584,"owners_count":20226131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archive","cli","downloader","rust","twitch"],"created_at":"2024-11-17T07:14:59.586Z","updated_at":"2025-10-08T15:33:49.582Z","avatar_url":"https://github.com/F0903.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Rust Stable](https://github.com/F0903/twitch_archiver_cli/actions/workflows/rust.yml/badge.svg)](https://github.com/F0903/twitch_archiver_cli/actions/workflows/rust.yml)\n\n# twitch_archiver_cli\n\nA fast and tiny downloader for Twitch VODs (also sub-only).\nSimply pass in a url, and give it an optional output path with an extension of your choosing, which the video will then be converted to.\n\nTo use as a library, see the [twitch_archiver repo.](https://github.com/F0903/twitch_archiver)\n\n## Usage\n\nEither run the executable normally as an interactive cli, or start the exe with parameters.\nTo download VODs, you must get your client id, as described below\n\n### Hardware Acceleration\n\nFor faster conversion, you can use hardware acceleration arguments provided to FFmpeg.\nFor Nvidia GPUs, you can use the following arguments provided to **get**:\nget --input-args \"-hwaccel cuda\" --output-args \"-c:v h264_nvenc\" **vod_url**\nOR use get --nvenc **vod_url** as a shorthand\n\n### Getting your Client ID\n\n1. Open any Twitch VOD\n2. Press F12 to open the dev tools and go to the Network tab. It should now be recording all network requests to and from Twitch\n3. Press CTRL+R to reload the page and start from scratch.\n4. When the page starts loading, wait until the video starts playing. Then press the red button to stop recording, and scroll to the top of the list.\n5. Scroll down through the list until you find a request called \"gql\".\n6. Open this request and find the \"Client-Id\" header under \"Request Headers\". Copy the value.\n\nYou can now provide the value to the program either with **settings client-id set** or with the _--auth_ option on **get**.\n\n### Downloading sub-only VODs\n\nTo download subscriber-only VODs, you need to provide an OAuth token either by setting it through **settings token set** or by passing it to the **get** command with the _--auth_ option.\n\nTo get your OAuth token, follow the method on getting your client id above, but copy the value of the \"Authorization\" header instead, without the first \"OAuth\" part.\n\n### Library Usage\n\nSee the [library repo.](https://github.com/F0903/twitch_archiver)\n\n## Commands\n\nget **url** _options_\n\n\u003e Downloads specified VOD.  \n\u003e Example: **get \u003chttps://www.twitch.tv/videos/1199379108\u003e -o vod.mp4**\n\u003e\n\u003e _options:_\n\u003e\n\u003e - --auth **token**\n\u003e - --client-id **id**\n\u003e - --input_args **ffmpeg_input_args**\n\u003e - --output_args **ffmpeg_output_args**\n\u003e - -o **output_path**\n\nsettings **sub-command** **operator** token set **auth_token**\n\n\u003e Command for handling settings. Values saved in settings.json.\n\u003e\n\u003e - token get  \n\u003e   Gets the current token.\n\u003e\n\u003e - token set **token**  \n\u003e   Sets the current token.\n\u003e\n\u003e - client-id get  \n\u003e   Gets the curret client-id\n\u003e\n\u003e - client-id set **id**  \n\u003e   Sets the current client-id\n\nversion\n\n\u003e Gets the current version of the program.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0903%2Ftwitch_archiver_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff0903%2Ftwitch_archiver_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0903%2Ftwitch_archiver_cli/lists"}