{"id":26907555,"url":"https://github.com/refret28/convert-bot","last_synced_at":"2025-04-01T11:57:00.539Z","repository":{"id":249727517,"uuid":"831889519","full_name":"Refret28/convert-bot","owner":"Refret28","description":"The bot converts and downloads any video, and, if possible, its preview (cover) from YouTube, in mp3 format.","archived":false,"fork":false,"pushed_at":"2024-08-18T15:38:41.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-19T15:48:03.882Z","etag":null,"topics":["pytube","requests","telebot","telegram-bot","youtube-search-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Refret28.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":"2024-07-21T23:02:16.000Z","updated_at":"2024-08-19T15:48:03.882Z","dependencies_parsed_at":"2024-07-23T01:44:08.568Z","dependency_job_id":"c3898538-db50-4fce-8995-373257123220","html_url":"https://github.com/Refret28/convert-bot","commit_stats":null,"previous_names":["refret28/convert-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Refret28%2Fconvert-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Refret28%2Fconvert-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Refret28%2Fconvert-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Refret28%2Fconvert-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Refret28","download_url":"https://codeload.github.com/Refret28/convert-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635953,"owners_count":20809331,"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":["pytube","requests","telebot","telegram-bot","youtube-search-python"],"created_at":"2025-04-01T11:56:56.480Z","updated_at":"2025-04-01T11:57:00.525Z","avatar_url":"https://github.com/Refret28.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Audio Downloading Telegram Bot\n\nThis bot allows users to search for YouTube videos and download audio, with the option to include a link to the original video. The bot uses the Aiogram framework and the yt_dlp library for extracting video information. FFmpeg is required for audio processing. Follow the instructions below for installation and setup.\n\n**Features**\n\n\u003cli\u003e\u003cstrong\u003eStart Command (/start):\u003c/strong\u003e Initializes the bot and prompts the user to enter a video title to search on YouTube.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eStop Command (/stop):\u003c/strong\u003e Stops the bot's interaction with the user.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eNext Command (/next):\u003c/strong\u003e Allows the user to search for another video.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eVideo Search \u0026 Audio Download:\u003c/strong\u003e Users can search for a video by entering its full title. The bot provides options to download only the audio or the audio with a link to the video.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eError Handling:\u003c/strong\u003e The bot handles common errors, such as network issues and file size limitations, providing relevant feedback to the user.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSession Management:\u003c/strong\u003e The bot tracks user states to manage ongoing interactions and prevent duplicate entries.\u003c/li\u003e\n\n## Installation and Setup\n\n1) **Clone the Repository:**\n```bash\n  git clone https://github.com/Refret28/convert-bot.git\n```\n```bash\n  cd convert-bot\n```\n\n2) **Install Dependencies:**\n```bash\n  pip install -r requirements.txt\n```\nThe requirements.txt file includes all necessary dependencies, including the yt_dlp library, which is used for extracting video information from YouTube. yt_dlp is a fork of youtube-dl with updated features for working with YouTube.\n\n3) **Install FFmpeg:**\n\nThe bot uses FFmpeg for processing audio files. Install FFmpeg as follows:\n\n\u003cli\u003e\u003cstrong\u003eFor Windows:\u003c/strong\u003e\u003c/li\u003e\u003cbr\u003e\n\nDownload FFmpeg from the official website: https://ffmpeg.org/download.html.\nExtract the archive and add the FFmpeg path to your system's PATH environment variable.\n\n\u003cli\u003e\u003cstrong\u003eFor macOS:\u003c/strong\u003e\u003c/li\u003e\u003cbr\u003e\n\nInstall FFmpeg via Homebrew:\n```bash\n  brew install ffmpeg \n```\n\u003cli\u003e\u003cstrong\u003eFor Linux:\u003c/strong\u003e\u003c/li\u003e\u003cbr\u003e\n\nInstall FFmpeg using your system's package manager. For example, on Ubuntu:\n```bash\n  sudo apt update\n```\n```bash\n  sudo apt install ffmpeg\n```\n4) **Configuration:**\nInsert your Telegram Bot API token, path to bin and path to dir to remove residual files after downloading into the config.ini file under the [BOT TOKEN], [PATH TO BIN] and [PATH TO DIR] sections.\n\n## Contributing\nContributions are welcome! Please fork the repository and submit a pull request with your improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefret28%2Fconvert-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefret28%2Fconvert-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefret28%2Fconvert-bot/lists"}