{"id":23646233,"url":"https://github.com/jpastorm/gotube","last_synced_at":"2025-08-31T21:32:15.420Z","repository":{"id":68963164,"uuid":"418064062","full_name":"jpastorm/gotube","owner":"jpastorm","description":"A youtube library for retrieving metadata, obtaining direct links to video-only/audio-only/mixed versions of videos and download videos.","archived":false,"fork":false,"pushed_at":"2022-10-17T03:19:47.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T05:28:14.892Z","etag":null,"topics":["download","go","golang","library","metadata-extraction","url","video","youtube","youtube-downloader"],"latest_commit_sha":null,"homepage":"","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/jpastorm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-10-17T08:19:27.000Z","updated_at":"2023-02-16T13:03:24.000Z","dependencies_parsed_at":"2023-07-27T01:47:14.547Z","dependency_job_id":null,"html_url":"https://github.com/jpastorm/gotube","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpastorm%2Fgotube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpastorm%2Fgotube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpastorm%2Fgotube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpastorm%2Fgotube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpastorm","download_url":"https://codeload.github.com/jpastorm/gotube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231628168,"owners_count":18402731,"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":["download","go","golang","library","metadata-extraction","url","video","youtube","youtube-downloader"],"created_at":"2024-12-28T13:19:18.877Z","updated_at":"2024-12-28T13:19:19.333Z","avatar_url":"https://github.com/jpastorm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gotube\n\n[![Go report](https://goreportcard.com/badge/github.com/jpastorm/gotube)](https://goreportcard.com/report/github.com/jpastorm/gotube)\n\n\u003cp align=\"center\"\u003e\n✨ A youtube library for retrieving metadata, obtaining direct links to video-only/audio-only/mixed versions of videos and download videos.\n\u003c/p\u003e\n\n## 🤠 Docs\n\nGoDoc: [https://pkg.go.dev/github.com/jpastorm/gotube](https://godoc.org/github.com/jpastorm/gotube)\n\n## Install\n```\ngo get github.com/jpastorm/gotube\n```\n## ⚡️ Quickstart\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/jpastorm/gotube\"\n\t\"log\"\n\t\"sync\"\n\t\"time\"\n)\n\nfunc main() {\n\tvar wg sync.WaitGroup\n\n\twg.Add(3)\n\tfmt.Println(\"Start Goroutines\")\n\n\tgo download(\"./video1\", \"https://www.youtube.com/watch?v=AvQLyCqOyFs\", \"video1\", \u0026wg)\n\tgo download(\"./video2\", \"https://www.youtube.com/watch?v=yOt1bL-s0n8\", \"video2\", \u0026wg)\n\tgo download(\"./video3\", \"https://www.youtube.com/watch?v=P5DeAD_uXE0\", \"video3\", \u0026wg)\n\tgo startTimer()\n\t// Wait for the goroutines to finish.\n\twg.Wait()\n\tfmt.Println(\"Terminating Program\")\n}\n\nfunc download(path, url, name string, group *sync.WaitGroup) {\n\tdefer group.Done()\n\tyr, err := gotube.GetMetaData(url)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\n\tdownloadPath, err := gotube.Download(path, yr.StreamingData.Formats[0].URL, name)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tfmt.Println(downloadPath)\n}\n\nfunc startTimer() {\n\tfor {\n\t\ttime.Sleep(2 * time.Second)\n\t\tfmt.Println(gotube.GetDownloadProgressList())\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpastorm%2Fgotube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpastorm%2Fgotube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpastorm%2Fgotube/lists"}