DEV Community

Cover image for How to Create Fake Social Media Metrics with Python
Oddshop
Oddshop

Posted on • Originally published at oddshop.work

How to Create Fake Social Media Metrics with Python

python social media automation tools can sometimes feel like a chore when you’re trying to generate realistic data for dashboards or testing. The manual process of creating fake metrics is not only time-consuming but also error-prone, especially when trying to simulate believable engagement patterns. This is where a dedicated python automation tool like the Social Media Metrics Faker can help.

The Manual Way (And Why It Breaks)

Generating fake social media metrics manually is a tedious task. You'd typically start by creating spreadsheets, then painstakingly inputting likes, comments, shares, and follower counts across time periods. To make it look authentic, you'd need to vary the growth curves, add noise to numbers, and simulate realistic daily fluctuations — all by hand. You might even be using python scripting to automate parts, but you’re still left with the challenge of making sure the data doesn’t jump around too wildly or look obviously fake. For marketers and developers building social media analytics tools, this lack of realism makes mock data useless for testing.

The Python Approach

Here’s a simple script that mimics what the full tool does. It uses python automation tools to simulate engagement metrics over time, generating values that look real but aren’t tied to any actual platform. This is a lightweight approach for developers who want to understand how their dashboards or reports will behave with fake data.

import pandas as pd
import numpy as np
from datetime import datetime, timedelta

# Define parameters
platform = 'instagram'  # can be 'twitter', 'facebook', 'tiktok'
days = 30
base_followers = 1000
growth_rate = 0.02

# Generate date range
start_date = datetime.now() - timedelta(days=days)
dates = [start_date + timedelta(days=i) for i in range(days)]

# Simulate follower growth with some randomness
followers = [base_followers * (1 + growth_rate) ** i + np.random.randint(-50, 50) for i in range(days)]

# Generate engagement metrics (likes, comments, shares)
likes = [int(followers[i] * np.random.uniform(0.02, 0.07)) + np.random.randint(-10, 10) for i in range(days)]
comments = [int(likes[i] * np.random.uniform(0.1, 0.3)) + np.random.randint(-5, 5) for i in range(days)]
shares = [int(likes[i] * np.random.uniform(0.01, 0.05)) + np.random.randint(-2, 2) for i in range(days)]

# Create DataFrame
data = {
    'date': dates,
    'followers': followers,
    'likes': likes,
    'comments': comments,
    'shares': shares
}

df = pd.DataFrame(data)
df['date'] = df['date'].dt.strftime('%Y-%m-%d')
print(df.head())
Enter fullscreen mode Exit fullscreen mode

This script creates a structured dataset with dates, follower counts, and engagement metrics. It's not full-featured, but it gives a realistic baseline for testing or visualizing what python social media automation might do. It can’t handle complex platform-specific logic or export formats — which is why developers often turn to tools like the Social Media Metrics Faker.

What the Full Tool Handles

  • Generate realistic follower counts with growth patterns based on platform analytics
  • Create authentic engagement metrics (likes, comments, shares) that simulate real-world fluctuations
  • Export data in multiple formats: CSV, JSON, and Excel for easy integration into dashboards
  • Support for multiple social media platforms: Instagram, Twitter, Facebook, and TikTok
  • Allow customization of time ranges and distribution of metrics per platform
  • Fully automated python social media automation with minimal setup

The full tool does all of this in one command, giving you clean, ready-to-use data without having to write a single line of code. It’s designed for those who want to python automation tools to do the heavy lifting.

Running It

To get started with the tool, simply run the command:

python fake_metrics.py --platform instagram --days 30 --output report.csv
Enter fullscreen mode Exit fullscreen mode

This command will generate a CSV file with 30 days of fake metrics for Instagram. You can change the --platform and --days settings to match your needs, and the --output flag lets you choose where the file is saved.

Get the Script

Skip the build and get a fully working solution designed for developers and marketers. Download Social Media Metrics Faker →

$29 one-time. No subscription. Works on Windows, Mac, and Linux.

Built by OddShop — Python automation tools for developers and businesses.

Top comments (0)