This project contains a script to download YouTube videos using Termux. It includes the following files:
- download.php: Core script for downloading YouTube videos.
- index.php: Interface for executing the download process.
<h2><strong>Features</strong></h2>
<ul>
<li><strong>Download YouTube videos</strong> directly through Termux.</li>
<li><strong>Command-line friendly</strong> for seamless interaction.</li>
<li><strong>Lightweight</strong> with minimal dependencies.</li>
</ul>
<h2>Setup Instructions</h2>
<ol>
<li>Install PHP in Termux:
<pre>pkg update && pkg upgrade
pkg install php
pkg install python pip install yt-dlp
git clone /~https://github.com/Godslovet/YouTube-downloader.git cd YouTube-downloader
php -S localhost:8000
http://localhost:8000
<h2><strong>Prerequisites</strong></h2>
<ul>
<li>Install Termux from <a href="https://f-droid.org/" target="_blank">F-Droid</a>.</li>
<li>Install PHP and yt-dlp (or youtube-dl).</li>
<li>Ensure you have an active internet connection.</li>
</ul>
<h2><strong>Troubleshooting</strong></h2>
<ul>
<li><strong>Script not working:</strong> Ensure all dependencies are correctly installed.</li>
<li><strong>Permission denied:</strong> Run:
<pre>termux-setup-storage</pre>
</li>
</ul>
<h2><strong>Contributing</strong></h2>
<p>Contributions are welcome! Feel free to fork the repository and submit pull requests.</p>
<h2><strong>License</strong></h2>
<p>This project is licensed under the MIT License.</p>
<h2><strong>Author</strong></h2>
<p><strong>Godslovet Johnson</strong></p>
<p>GitHub: <a href="/~https://github.com/Godslovet" target="_blank">Godslovet</a></p>