{"id":16892798,"url":"https://github.com/wader/goutubedl","last_synced_at":"2025-04-04T20:12:03.816Z","repository":{"id":36758630,"uuid":"198496184","full_name":"wader/goutubedl","owner":"wader","description":"Go wrapper for youtube-dl and yt-dlp","archived":false,"fork":false,"pushed_at":"2025-03-28T18:13:33.000Z","size":239,"stargazers_count":131,"open_issues_count":6,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T19:10:57.227Z","etag":null,"topics":["go","golang","youtube-dl","yt-dlp"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/wader/goutubedl?tab=doc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wader.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":"2019-07-23T19:33:42.000Z","updated_at":"2025-03-28T18:13:35.000Z","dependencies_parsed_at":"2023-10-11T21:38:58.895Z","dependency_job_id":"eb1cbb14-299b-4c37-927a-779dac287720","html_url":"https://github.com/wader/goutubedl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wader%2Fgoutubedl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wader%2Fgoutubedl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wader%2Fgoutubedl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wader%2Fgoutubedl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wader","download_url":"https://codeload.github.com/wader/goutubedl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242679,"owners_count":20907134,"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":["go","golang","youtube-dl","yt-dlp"],"created_at":"2024-10-13T17:12:25.503Z","updated_at":"2025-04-04T20:12:03.797Z","avatar_url":"https://github.com/wader.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"## goutubedl\n\nGo wrapper for\n[youtube-dl](https://github.com/ytdl-org/youtube-dl) and\n[yt-dlp](https://github.com/yt-dlp/yt-dlp).\nCurrently only tested and developed using yt-dlp.\nAPI documentation can be found at [godoc.org](https://pkg.go.dev/github.com/wader/goutubedl?tab=doc).\n\nSee [yt-dlp documentation](https://github.com/yt-dlp/yt-dlp) for how to\ninstall and what is recommended to install in addition to yt-dl.\n\ngoutubedl default uses `PATH` to find `youtube-dl` or `yt-dlp` (in that order) but can be configured with the\n`goutubedl.Path` variable.\n\nDue to the nature of and frequent updates of yt-dl only the latest version is tested.\nBut it seems to work well with older versions also.\n\n### Usage\n\nFrom [cmd/example/main.go](cmd/example/main.go)\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"io\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/wader/goutubedl\"\n)\n\nfunc main() {\n\tresult, err := goutubedl.New(context.Background(), \"https://www.youtube.com/watch?v=jgVhBThJdXc\", goutubedl.Options{})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdownloadResult, err := result.Download(context.Background(), \"best\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer downloadResult.Close()\n\tf, err := os.Create(\"output\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer f.Close()\n\tio.Copy(f, downloadResult)\n}\n\n```\n\nSee [goutubedl cmd tool](cmd/goutubedl/main.go) or [ydls](https://github.com/wader/ydls)\nfor usage examples.\n\n### Default options and cache\n\n#### .netrc\n\ngoutubedl by default uses `--netrc` to use `~/.netrc` authentication data.\n\n#### Cache directory\n\nyt-dlp stores various extractor session data to speed up things in `${XDG_CACHE_HOME}/yt-dlp` (usually `~/.cache/yt-dlp`). You might want to preverse this directory if your running things in ephemeral conatiners etc.\n\n### Development\n\n```sh\ndocker build --target dev -t goutubedl-dev .\ndocker run --rm -ti -v \"$PWD:$PWD\" -w \"$PWD\" goutubedl-dev\ngo test -v -race -cover\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwader%2Fgoutubedl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwader%2Fgoutubedl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwader%2Fgoutubedl/lists"}