{"id":24639660,"url":"https://github.com/jpleorx/youtube-download-cli","last_synced_at":"2025-05-10T03:44:20.751Z","repository":{"id":60375549,"uuid":"542580094","full_name":"JPLeoRX/youtube-download-cli","owner":"JPLeoRX","description":"An elegant CLI tool built in Python that allows you to download videos from YouTube both as MP4 video files and as MP3 audio files","archived":false,"fork":false,"pushed_at":"2023-02-09T16:45:28.000Z","size":15,"stargazers_count":45,"open_issues_count":5,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-01T09:49:10.998Z","etag":null,"topics":["cli","cli-app","cli-tool","python","python3","pytube","youtube","youtube-audio-downloader","youtube-dl","youtube-downloader","youtube-downloader-app","youtube-downloader-python","youtube-video-downloader"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JPLeoRX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-28T12:29:54.000Z","updated_at":"2025-03-25T20:00:20.000Z","dependencies_parsed_at":"2022-09-28T19:10:16.708Z","dependency_job_id":null,"html_url":"https://github.com/JPLeoRX/youtube-download-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPLeoRX%2Fyoutube-download-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPLeoRX%2Fyoutube-download-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPLeoRX%2Fyoutube-download-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPLeoRX%2Fyoutube-download-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JPLeoRX","download_url":"https://codeload.github.com/JPLeoRX/youtube-download-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253186860,"owners_count":21868065,"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":["cli","cli-app","cli-tool","python","python3","pytube","youtube","youtube-audio-downloader","youtube-dl","youtube-downloader","youtube-downloader-app","youtube-downloader-python","youtube-video-downloader"],"created_at":"2025-01-25T11:12:22.509Z","updated_at":"2025-05-09T03:40:27.113Z","avatar_url":"https://github.com/JPLeoRX.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Download CLI \nAn elegant CLI tool built in Python that allows you to download videos from YouTube both as MP4 video files and as MP3 audio files. \n\n# Usage\nI tried to keep it as basic as possible, after installation the tool can be accessed from terminal. You need to specify a YouTube URL for download. An optional mode to switch between video \u0026 audio (mp4 or mp3) downloads. And an optional output directory path. By default all downloaded files will be saved in current working directory from which you launched this script.\n\nThis tool was tested on MacOS and Ubuntu, and probably won't work on Windows.\n### Help\n```bash\nleo@c6p2 ~ % youtube-download-cli -h\n\nusage: youtube-download-cli [-h] [-o [o]] [U] [M]\n\npositional arguments:\n  U           youtube video url which needs to be downloaded, like \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" or \"https://youtu.be/Fd_3EkGr0-4\"\n  M           download mode can be \"mp3\"/\"mp4\"/\"audio\"/\"video\"\n\noptional arguments:\n  -h, --help  show this help message and exit\n  -o [o]      output directory (optional, defaults to current working directory)\n\n```\n\n### Download as MP4 video\n```bash\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\"\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" mp4\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" video\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" -o \"/Users/leo/Downloads\"\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" mp4 -o \"/Users/leo/Downloads\"\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" video -o \"/Users/leo/Downloads\"\n```\n### Download as MP3 audio\n```bash\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" mp3\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" audio\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" mp3 -o \"/Users/leo/Downloads\"\nyoutube-download-cli \"https://www.youtube.com/watch?v=Fd_3EkGr0-4\" audio -o \"/Users/leo/Downloads\"\n```\n\n# Installation\n \n## Normal installation\n\n```bash\npip install youtube-download-cli\n```\n\n## Development installation\n\n```bash\ngit clone https://github.com/jpleorx/youtube-download-cli.git\ncd youtube-download-cli\npip install --editable .\n```\n\n# Links\nIn case you’d like to check my other work or contact me:\n* [Personal website](https://tekleo.net/)\n* [GitHub](https://github.com/jpleorx)\n* [PyPI](https://pypi.org/user/JPLeoRX/)\n* [DockerHub](https://hub.docker.com/u/jpleorx)\n* [Articles on Medium](https://medium.com/@leo.ertuna)\n* [LinkedIn (feel free to connect)](https://www.linkedin.com/in/leo-ertuna-14b539187/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpleorx%2Fyoutube-download-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpleorx%2Fyoutube-download-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpleorx%2Fyoutube-download-cli/lists"}