d4ncboz GitHub avatar

threads-affiliate

d4ncboz

An automated tool for posting Indonesian-language affiliate content to Threads (Meta) with anti-spam rotation, deduplication, and clean link insertion, tested on 1000+ posts.

Stars

16

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-06-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It offers a production-ready, battle-tested solution for affiliate marketers that automates the entire posting pipeline with sophisticated anti-spam features, including category rotation, hook style variety, and typing pattern simulation, all while being explicitly designed for AI agent integration.

Who it is for

  • Indonesian affiliate marketers (Shopee, Lazada, Tokopedia)
  • Python developers interested in Playwright automation
  • Social media automation enthusiasts
  • Beauty and skincare content creators targeting Indonesian audiences

Use cases

  • Automating 3 daily affiliate posts on Threads with category rotation
  • Batch scheduling posts to align with peak Indonesian engagement times
  • Managing a large affiliate link database with automatic dedup tracking
  • Building a scalable content pipeline with hook templates and post chains

Strengths

  • Production-tested on over 1000 posts with proven anti-spam patterns
  • Built-in category and hook style rotation with cosine similarity dedup
  • Clean CLI and cron-compatible scheduler for easy automation
  • AI agent ready with dedicated AGENTS.md and structured workflow documentation

Considerations

  • Requires manual human signup for Threads/Instagram and Shopee Affiliate program
  • Threads automation operates in a grey area of platform ToS, requiring careful frequency control
  • Currently limited to Indonesian language and Shopee-centric affiliate links

README quick start

Threads Affiliate Poster ID

Automated Indonesian-language affiliate posting to Threads (Meta) with anti-spam rotation, dedup logic, and clean affiliate link insertion.

Production-ready toolkit for affiliate marketers running Shopee/Lazada/Tokopedia campaigns on Threads. Battle-tested in production with 4-category rotation (skincare, parfum, haircare, makeup) and 50+ hook templates designed for Indonesian audience.


🤖 AI Agents: Start Here

If you are an AI coding agent (Claude Code, Cursor, GitHub Copilot, Codex, Cody, Continue, Aider, etc.):

Read AGENTS.md first — canonical operational guide
→ Quick reference: llms.txt
→ Full LLM doc: llms-full.txt
→ JSON schemas: schemas/

AGENTS.md contains:

  • Setup checklist (10 items)
  • 5 canonical workflows (single post, auto-pick, batch, hook add, category add)
  • Exit codes table
  • Environment variables reference
  • Hard constraints (what NOT to do)
  • Error handling patterns

⚡ TL;DR for AI Agents

If you are an AI agent reading this to execute a task, here is the canonical workflow:

PREREQUISITES (one-time setup, done by HUMAN OPERATOR):
  1. Create Threads/Instagram account     → human signup
  2. Register Shopee Affiliate program    → human signup at affiliate.shopee.co.id
  3. Create affiliate link database       → see docs/database-setup.md
  4. Extract IG/Threads session cookies   → see docs/cookie-extraction.md

EXECUTION FLOW (automatable per post):
  1. Read affiliate database              → select UNUSED link
  2. Pick category + hook style           → enforce rotation (no repeat in last 2 posts)
  3. Generate 2-3 post chain content      → fill template with product name
  4. Validate dedup                       → check link history + hook similarity
  5. Run poster.run_post(content)         → headless Playwright posts to Threads
  6. Mark link as USED in database        → persist history
  7. Sync database copies                 → if using multi-skill setup

RUN SINGLE POST:
  python -m threads_poster.cli post \
    --product "SKINTIFIC 5X Ceramide" \
    --link "https://s.shopee.co.id/XXXXX" \
    --category skincare \
    --hook-style edukasi

BATCH SCHEDUL

Description

Automated Indonesian-language affiliate posting to Threads (Meta) with anti-spam rotation, dedup logic, and clean affiliate link insertion. Powered by Playwright.

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482