DEV Community

SEO - NT Tech Innovation
SEO - NT Tech Innovation

Posted on

Taming a 900-Item SMM Services List: Grouping Services by Platform With Python (Notes for Bangladeshi Resellers)

By MD Fozla Rabbi, SEO Specialist

If you've ever opened an SMM panel's services endpoint, you know the pain. Hundreds of rows. Names like "FB Page Likes [BD] [R30] Fast ⚡". Good luck building a clean menu for customers.

Here's a small Python script that groups that mess into platform and type buckets, so a Bangladeshi reseller can show a short, readable price list in taka.

Typical services response

Most panels follow the same API v2 pattern and return something like:

[
  {"service": 101, "name": "Facebook Page Followers [BD] R30", "rate": "0.62", "min": "100", "max": "50000"},
  {"service": 205, "name": "YouTube Views HR Non-Drop", "rate": "0.95", "min": "500", "max": "1000000"}
]
Enter fullscreen mode Exit fullscreen mode

The rate is usually per 1,000 in USD.

The script

import json
import re
from collections import defaultdict

USD_TO_BDT = 122  # update this yourself
MARGIN = 1.35

PLATFORMS = ["facebook", "youtube", "tiktok", "instagram", "telegram", "spotify"]
TYPES = ["followers", "likes", "views", "subscribers", "members", "comments"]

def classify(name):
    low = name.lower()
    platform = next((p for p in PLATFORMS if p in low), "other")
    kind = next((t for t in TYPES if t in low), "misc")
    refill = bool(re.search(r"\br(\d+)\b|refill", low))
    return platform, kind, refill

with open("services.json") as f:
    services = json.load(f)

menu = defaultdict(list)
for s in services:
    platform, kind, refill = classify(s["name"])
    bdt = float(s["rate"]) * USD_TO_BDT * MARGIN
    menu[(platform, kind)].append((round(bdt), refill, s["service"], s["name"]))

for key in sorted(menu):
    cheapest = sorted(menu[key])[:3]
    print(key[0].title(), "-", key[1])
    for price, refill, sid, name in cheapest:
        tag = "refill" if refill else "no refill"
        print(f"   #{sid}  ৳{price}/1000  ({tag})")
Enter fullscreen mode Exit fullscreen mode

Why bother?

  • Customers in BD Facebook groups compare fast. A clean menu with taka prices converts better.
  • Flagging refill services helps you avoid selling cheap no-refill stuff that comes back as complaints.
  • You can rerun it daily when rates change.

One honest caveat

Name parsing is fuzzy. "FB" won't match "facebook" unless you add it. Keep a small alias dictionary and check the output by eye before publishing prices.

If you're new to how panels work in general, this explainer on what an SMM panel is and how it works in Bangladesh gives the non-code background. For a local supplier with taka-friendly pricing and an API, SMM Booster BD is one option worth testing.

Top comments (0)