1. Automated File Backup
import shutil, os, datetime
src = input("Enter source file/folder: ")
dst = input("Enter destination folder: ")
try:
if not os.path.exists(dst):
os.makedirs(dst)
backup_name = f"{os.path.basename(src)}_{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}"
dst_path = os.path.join(dst, backup_name)
if os.path.isdir(src):
shutil.copytree(src, dst_path)
else:
shutil.copy2(src, dst_path)
print(f"[✔] Backup saved at {dst_path}")
except Exception as e:
print(f"[✘] Error: {e}")
2. Automated Website Pinger
import os, datetime
host = input("Enter website or IP: ")
logfile = "ping_log.txt"
try:
response = os.system(f"ping -c 4 {host}")
with open(logfile, "a") as f:
f.write(f"{datetime.datetime.now()} - {host} - {'UP' if response == 0 else 'DOWN'}\n")
print("[✔] Result logged to ping_log.txt")
except Exception as e:
print(f"[✘] Error: {e}")
3. Git Commit Automation
import os, datetime, subprocess
msg = input("Commit message: ")
logfile = "git_log.txt"
try:
subprocess.run(["git", "add", "."], check=True)
subprocess.run(["git", "commit", "-m", msg], check=True)
with open(logfile, "a") as f:
f.write(f"{datetime.datetime.now()} - Commit: {msg}\n")
print("[✔] Commit logged")
except Exception as e:
print(f"[✘] Error: {e}")
4. API Request Logger
import requests, datetime
url = input("Enter API endpoint: ")
logfile = "api_log.txt"
try:
r = requests.get(url)
with open(logfile, "a") as f:
f.write(f"{datetime.datetime.now()} - {url} - {r.status_code}\n")
print(f"[✔] Response: {r.status_code}")
except Exception as e:
print(f"[✘] Error: {e}")
5. Automated PDF Merger
from PyPDF2 import PdfMerger
files = input("Enter PDF files separated by space: ").split()
output = "merged.pdf"
try:
merger = PdfMerger()
for f in files:
merger.append(f)
merger.write(output)
merger.close()
print(f"[✔] PDFs merged into {output}")
except Exception as e:
print(f"[✘] Error: {e}")
6. Folder Cleaner (by file type)
import os, shutil
folder = input("Enter folder path: ")
ext = input("Enter file extension (e.g. .txt): ")
target = folder + "_cleaned"
try:
os.makedirs(target, exist_ok=True)
for f in os.listdir(folder):
if f.endswith(ext):
shutil.move(os.path.join(folder, f), os.path.join(target, f))
print(f"[✔] Files moved to {target}")
except Exception as e:
print(f"[✘] Error: {e}")
7. CSV Analyzer
import pandas as pd
file = input("Enter CSV file path: ")
try:
df = pd.read_csv(file)
print("[✔] Summary:")
print(df.describe())
except Exception as e:
print(f"[✘] Error: {e}")
8. Automated Image Resizer
from PIL import Image
import os
file = input("Enter image path: ")
size = int(input("Enter new size (px): "))
try:
img = Image.open(file)
img.thumbnail((size, size))
new_file = f"resized_{os.path.basename(file)}"
img.save(new_file)
print(f"[✔] Image saved as {new_file}")
except Exception as e:
print(f"[✘] Error: {e}")
9. YouTube Downloader (audio only)
from pytube import YouTube
url = input("Enter YouTube URL: ")
try:
yt = YouTube(url)
stream = yt.streams.filter(only_audio=True).first()
out_file = stream.download()
print(f"[✔] Downloaded: {out_file}")
except Exception as e:
print(f"[✘] Error: {e}")
10. Automated Daily Journal Writer
import datetime
entry = input("Write today’s entry: ")
logfile = "journal.txt"
try:
with open(logfile, "a") as f:
f.write(f"{datetime.datetime.now().strftime('%Y-%m-%d')} - {entry}\n")
print("[✔] Journal updated")
except Exception as e:
print(f"[✘] Error: {e}")
Want to turn ideas into income?
Here are our step-by-step playbooks that show you exactly how.
Product Title | Link |
---|---|
Earn $997 Selling Starter Packs to Offline Clients | Link |
$1000+ Plan: Rank a Simple Website for Local Keywords | Link |
$500/Week from Faceless Gigs in 7 Days | Link |
$300/3 Days: Sell a Resource Vault with Free Tools | Link |
$250/24 Hrs: Sell a High-Value PDF Without Writing an eBook | Link |
Make $100/Day from Notion Systems | Link |
$5K Flip: Grow & Sell Social Accounts for Profit | Link |
Turn Free or AI Content into $500+ Products | Link |
Make $1K/Month Helping Local Businesses | Link |
Host a $97 Mini-Course Without Filming | Link |
Create & Sell Plug-and-Play Tools in 5 Days — No Code | Link |
Sell Quick Freelance Tasks for $100+/Day | Link |
10 Low-Work Laptop Businesses You Can Launch Today | Link |
Launch Your First Digital Product in 7 Days — No Audience Needed | Link |
Build a Simple Local Website and Charge $500+ | Link |
Don’t just read — grab one, use it today, and start making it back by tomorrow.
👉 See all playbooks here
The easiest win? A clean, basic website that small business owners actually pay for. This playbook shows you exactly how to do it.
👉 Get it here: Build a $500+ Website the Easy Way
Top comments (0)