Menu

Post image 1
Post image 2
1 / 2
0

5 Python Scripts Every Freelancer Should Run on Autopilot

DEV Community·Brad·19 days ago
#2AKkfENL
Reading 0:00
15s threshold

I've been freelancing for 4 years. The biggest lesson: admin work will eat you alive if you let it. Chasing invoices. Sending project updates. Tracking billable hours. Following up on proposals. Writing weekly reports. None of it makes you money directly. All of it is necessary. The solution: automate it. Here are the 5 scripts I run on autopilot every week. 1. Automatic Invoice Follow-Up Checks your invoice records and sends a polite follow-up if payment is 7+ days late. import smtplib import csv from datetime import datetime , timedelta from email.mime.text import MIMEText def check_overdue_invoices ( invoices_file = " invoices.csv " ): overdue = [] today = datetime . now (). date () with open ( invoices_file ) as f : reader = csv . DictReader ( f ) for row in reader : if row [ " status " ] == " unpaid " : due_date = datetime . strptime ( row [ " due_date " ], " %Y-%m-%d " ). date () days_overdue = ( today - due_date ). days if days_overdue > 7 : overdue .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More