Jump to content

Automating Side Hustles with Python

From JOHNWICK

How I Turned Small Scripts into Streams of Income

🔥 Work Remotely With Top Global Teams 🚀 Developers, Designers, And Data Experts Are Landing Exciting Projects Across The globe — Both Full-Time And Contract-Based. 🔥 Roles Available: ✅ Frontend & Backend Engineers
✅ Full Stack Developers
✅ Mobile App Engineers (React Native, Flutter)
✅ UI/UX Designers
✅ DevOps, AI & Data Specialists 💰 Compensation: $30 — $120/hr depending on role, experience, and project scope. ⚡ Pro Tip: Complete your profile before applying — incomplete profiles rarely pass the first screening stage.
Top companies hire fast, and early applicants often secure the best roles. 👉 Apply Now — The Fastest Applicants Secure The Best Offers!


When I first started with Python, I used it purely for learning algorithms and building toy projects. What I didn’t realize at the time was that Python could quietly become my biggest money-making tool. Over the last four years, I’ve used it to automate tasks, sell services, and even spin up small SaaS tools. In this article, I’ll walk you through practical ways Python can generate real income, backed with code you can adapt today.


1) Automating Freelance Work with APIs Freelancing often comes down to delivering consistent results quickly. Python makes this repeatable. Example: A client asked me to generate SEO reports weekly. Instead of doing it by hand, I built a Python script using requests and Google’s API.

import requests
import pandas as pd

API_KEY = "your_google_api_key"
SEARCH_ENGINE_ID = "your_engine_id"
query = "Python automation tutorials"

url = f"https://www.googleapis.com/customsearch/v1?q={query}&key={API_KEY}&cx={SEARCH_ENGINE_ID}"
response = requests.get(url).json()

results = []
for item in response.get("items", []):
    results.append({"title": item["title"], "link": item["link"]})

df = pd.DataFrame(results)
df.to_csv("seo_report.csv", index=False)
print("Report generated successfully!")

Delivering that as a CSV weekly meant I could focus on higher-paying projects while my script ran in the background.


2) Selling Data Scraping Services Data is gold, and companies pay for clean, structured data. Web scraping is one of the fastest ways to monetize Python skills.

import requests
from bs4 import BeautifulSoup

url = "https://quotes.toscrape.com/"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")

quotes = []
for quote in soup.find_all("span", class_="text"):
    quotes.append(quote.get_text())

print(quotes[:5])

This tiny script scrapes quotes, but I’ve scaled similar code to scrape job listings, e-commerce prices, and even real estate data — clients paid me anywhere from $200 to $1000 per project.


3) Passive Income from Automation Scripts Once I built a script that converted YouTube playlists into downloadable transcripts for note-taking. Instead of keeping it private, I packaged it and sold it on Gumroad for $15. Within two months, I made over $500 from something I had already written.

from youtube_transcript_api import YouTubeTranscriptApi

video_id = "Ks-_Mh1QhMc"
transcript = YouTubeTranscriptApi.get_transcript(video_id)

with open("transcript.txt", "w") as f:
    for entry in transcript:
        f.write(entry['text'] + "\n")

Selling simple automation tools like this can snowball into reliable passive income.


4) Building Micro-SaaS with Flask You don’t need to build the next Facebook to make money. A tiny SaaS solving a niche pain point can pull in recurring revenue. I once built a “resume tailor” app that helped job seekers optimize resumes for ATS systems.

from flask import Flask, request, render_template
import openai

app = Flask(__name__)
openai.api_key = "your_api_key"

@app.route("/", methods=["GET", "POST"])
def index():
    if request.method == "POST":
        resume = request.form["resume"]
        job_desc = request.form["job_desc"]
        
        prompt = f"Rewrite resume for: {job_desc}\n\nResume:\n{resume}"
        response = openai.ChatCompletion.create(
            model="gpt-4o-mini",
            messages=[{"role":"user","content":prompt}]
        )
        tailored = response["choices"][0]["message"]["content"]
        return f"<pre>{tailored}

"

   return render_template("form.html")

if __name__ == "__main__":

   app.run(debug=True)

I charged $10/month, and within weeks, I had paying users. Not life-changing money, but it compounded fast.


5) Automating Stock Market Alerts Trading platforms can be overwhelming, but Python helps filter noise into actionable signals.

import yfinance as yf
import smtplib

stock = yf.Ticker("AAPL")
price = stock.history(period="1d")["Close"].iloc[-1]

if price < 180:
    with smtplib.SMTP("smtp.gmail.com", 587) as server:
        server.starttls()
        server.login("[email protected]", "password")
        server.sendmail("[email protected]", "[email protected]", f"AAPL dropped to {price}")

I’ve used variations of this to sell alert services to traders who wanted early signals without digging into dashboards daily.


6) Automating Social Media Posts for Clients Brands need consistent posting, but no one wants to babysit scheduling. Python + APIs = income.

import tweepy

client = tweepy.Client(bearer_token="your_token")

tweet = "Automating posts with Python feels like cheating!"
response = client.create_tweet(text=tweet)
print("Tweet posted:", response)

I managed social accounts for small businesses, charging $200/month per client just to automate their posting schedule.


7) Selling Templates and Scripts as Digital Products Not every project needs to be a service. Selling pre-built Python templates is shockingly effective. Think invoice generators, Excel cleaners, PDF splitters.

from PyPDF2 import PdfReader, PdfWriter

reader = PdfReader("input.pdf")
writer = PdfWriter()

for page in reader.pages[:5]:
    writer.add_page(page)

with open("output.pdf", "wb") as f:
    writer.write(f)

I packaged tools like this and sold them on marketplaces. Simple, but buyers love done-for-you solutions.


Closing Thoughts Python isn’t just about solving coding problems — it’s about solving money problems. Whether it’s freelancing, digital products, or micro-SaaS, the opportunities to monetize are endless. Here’s my advice: start small. Pick one boring task someone else would gladly pay to avoid, automate it, and sell it. Scale comes naturally once you see the first payment hit your account. Remember: in tech, leverage is everything. And Python is the greatest lever we have.


Read the full article here: https://medium.com/codetodeploy/automating-side-hustles-with-python-00ddef566311