How to Automate Your Launch on Product Hunt and Indie Hackers
Launching a product is exhausting. Here's how I automated the distribution process using Python.
The Challenge
Every indie hacker knows the drill: you build something, then spend days copy-pasting the same launch post across 10 platforms.
Python Automation Approach
import requests
import json
# Dev.to API
def post_to_devto(title, content, api_key):
headers = {'api-key': api_key, 'Content-Type': 'application/json'}
data = {'article': {'title': title, 'body_markdown': content, 'published': True}}
r = requests.post('https://dev.to/api/articles', json=data, headers=headers)
return r.json()
# Gumroad product check
def check_gumroad_sales(product_id, access_token):
r = requests.get(
f'https://api.gumroad.com/v2/sales',
params={'access_token': access_token, 'product_id': product_id}
)
return r.json()
# Product Hunt GraphQL
def ph_search_products(query):
headers = {'Authorization': 'Bearer YOUR_TOKEN'}
query_gql = '''
query($query: String!) {
posts(query: $query) {
edges { node { name tagline url } }
}
}'''
r = requests.post('https://api.producthunt.com/v2/api/graphql',
json={'query': query_gql, 'variables': {'query': query}},
headers=headers)
return r.json()
My Launch Stack
For my Python Business Automation Toolkit, I built a distribution pipeline:
- Dev.to — API-based publishing, builds SEO over time
- Product Hunt — OAuth-based submission, best for launch day traffic
- Indie Hackers — Community-focused, great for peer feedback
Key Learnings
- Dev.to API is the most developer-friendly (simple API key auth)
- Product Hunt requires OAuth (LinkedIn/GitHub/X)
- IH uses Firebase auth (can be accessed via REST API)
- Always check your traffic sources to see what converts
The Toolkit
I packaged the scripts I use to run my freelance business into a $9 toolkit:
- Invoice generator
- Time tracker with auto-billing
- Email automation suite
- Proposal generator
- Revenue dashboard
Built for freelancers who want to stop paying $400/yr in SaaS subscriptions.
Conclusion
Automation isn't just about saving time — it's about building systems that work while you sleep. Whether you're launching a product or running a freelance business, Python can handle the repetitive parts.
What platforms do you post to for product launches? Would love to hear your distribution stack.
Top comments (0)