A versatile command-line tool for Termux that simplifies downloading content from URLs. Whether you need to grab a video, extract audio, or just download a file, this script provides a simple menu to handle it all with popular tools like yt-dlp, spotdl, curl, and wget.
- All-in-One Menu: A simple, interactive menu to choose your download method.
- Video & Audio Downloads: Easily download videos as MP4 or extract audio as MP3 from various sites using
yt-dlp. - Spotify Support: Download tracks from Spotify URLs using
spotdl. - Standard Downloads: Use
curlorwgetfor direct file downloads. - Organized Storage: Files are automatically saved into organized subdirectories within
~/storage/downloads/termux. - Self-Updating: Includes a built-in command to update the script to the latest version directly from GitHub.
- Auto-Dependency Installation: The script automatically detects and attempts to install missing dependencies.
Before you begin, ensure you have Termux installed on your Android device. The script will attempt to install the following if missing:
pythonffmpegcurlwgetyt-dlp(Python package)spotdl(Python package)
You can install the tool with a single command. Open your Termux terminal and run the following:
bash -c "$(curl -fsSL [https://raw.githubusercontent.com/haiueom/termux-url-opener/main/install.sh](https://raw.githubusercontent.com/haiueom/termux-url-opener/main/install.sh))"This command will:
- Update your package lists and upgrade existing packages.
- Install all the necessary system and Python dependencies.
- Download the main termux-url-opener script to ~/bin.
- Make the script executable.
Once installed, you can share an URL to Termux App or use the command line to run the script.
Use the share feature from your browser or any app that supports sharing URLs.
Select "Termux" from the list of apps. This script will launch automatically if configured correctly in ~/bin/termux-url-opener.
Open Termux and type the following command:
termux-url-opener "[https://www.youtube.com/watch?v=dQw4w9WgXcQ](https://www.youtube.com/watch?v=dQw4w9WgXcQ)"Contributions are welcome! If you have ideas for new features, improvements, or bug fixes, feel free to open an issue or submit a pull request.