Welcome to the Python Beginner Automation Projects repository! This project is designed as a learning resource for students looking to practicalize their Python skills. It covers real-world concepts like API integrations, Graphical User Interface (GUI) components, and local file system automation.
| Script | Name | What it teaches |
|---|---|---|
currency.py |
Live Currency Converter | Web API requests, handling JSON data, error management. |
youtube.py |
YouTube Video Downloader | Desktop file dialogues (tkinter), working with third-party libraries. |
backup.py |
Automated Directory Backup | File I/O operations (shutil), background task scheduling. |
git clone [https://github.com/YOUR_GITHUB_USERNAME/python-beginner-automation-projects.git](https://github.com/YOUR_GITHUB_USERNAME/python-beginner-automation-projects.git)
cd python-beginner-automation-projects
2. Install Dependencies
These scripts rely on external Python modules. Install them altogether using pip:
Bash
pip install requests pytube schedule
Note on pytube: YouTube frequently modifies its platform. If you encounter signature cipher errors while running youtube.py, try upgrading the library using pip install --upgrade pytube or switching to yt-dlp.
📖 How to Run and Configure the Projects
💵 1. Currency Converter (currency.py)
This script fetches live exchange rates.
Visit freecurrencyapi.com and sign up for a free developer account.
Open currency.py and replace YOUR_FREE_CURRENCY_API_KEY_HERE with your actual API key.
Run the script:
Bash
python currency.py
📺 2. YouTube Downloader (youtube.py)
Downloads progressive MP4 streams directly via terminal input.
Run the script:
Bash
python youtube.py
Paste a valid YouTube video URL when prompted.
A native file-explorer window will pop up. Choose the destination folder where you want to save the video.
🗄️ 3. Automatic Directory Backup (backup.py)
Automates backing up important folders dynamically on a daily clock loop.
Open backup.py and edit the configuration paths:
Python
SOURCE_DIR = "C:/Users/YourUsername/Documents/TargetFolder"
DESTINATION_DIR = "D:/MyBackups"
Adjust the execution time in the schedule block if desired (currently set to "18:57" / 6:57 PM).
Run the script and leave it executing in the background:
Bash
python backup.py
💡 Practice Ideas for Students
Want to take these projects further? Try adding these challenges:
currency.py: Add support for more currency tickers or create a feature that calculates the conversion for a specific input amount of money.
youtube.py: Add a feature that allows users to download only the audio file track (MP3 extraction).
backup.py: Upgrade the script to automatically compress the backup folder into a .zip archive file using Python's zipfile module.
Feel free to fork this repository, file issues, or submit pull requests with improvements!