Welcome to the YouTube Downloader app! This app allows you to download YouTube videos by simply entering a valid YouTube URL.
-
Enter YouTube URL: Launch the app and you'll find a textbox. Enter the URL of the YouTube video you want to download.
-
Download: After entering the URL, press the "Download" button to start the download process.
-
Progress: You'll see a progress bar indicating the download progress. Once it's completed, you'll find the downloaded video in your device's storage.
-
Enjoy: Enjoy your downloaded YouTube video offline!
If you want to build the app yourself or make modifications, follow these steps:
-
Install Buildozer: Make sure you have Buildozer installed on your development machine. You can install it using pip:
pip install buildozer
Note for Windows Users: If you're using a Windows machine, it's recommended to use Windows Subsystem for Linux (WSL) to run Buildozer. 2. Create a Directory: Start by creating a new directory (folder) for your project. You can name it whatever you like.
-
Open the folder using your favorite code editor
-
Set Up Environment: Create a Python virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows, use 'venv\Scripts\activate'
-
Dependencies: Install the necessary dependencies for your app, including
kivy,kivymd,loggingandpytube:pip install kivy kivymd pytube logging
-
Navigate to the Project Directory: Open a terminal or command prompt and navigate to the project directory. You'll do most of your work within this directory.
-
Initialize the Project Configuration: Run the following command to create a
buildozer.spectemplate file for your project:buildozer init
This command will interactively prompt you for various project configuration options and generate a
buildozer.specfile based on your responses. -
Edit the
buildozer.specFile: Open thebuildozer.specfile in a text editor. Locate requirements line in the file. Edit to,requirements = python3,kivy,kivymd,pillow,pytube,loggingmaking sure the dependencies are installed when the app builds.
-
Build the APK: When you're ready to build your Android app, open a terminal or command prompt in the project directory and run the following command:
buildozer -v android debug
This command tells Buildozer to compile your app into an APK, deploy it to a connected device or emulator, and run it. The resulting APK will be placed in the
bindirectory of your project. -
Transfer and Install the APK: Transfer the generated APK file to your Android device (e.g., via USB, email, cloud storage) and install it on your device.
-
Run Your App: After installation, you can run your Android app on your device just like any other app.
