Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project O — AI Social Media Autoposter

Automated Telegram channel poster that fetches articles from RSS feeds, rewrites them into engaging posts using AI, and publishes on a schedule.

What it does

  1. Fetches latest articles from configured RSS sources
  2. Rewrites each article into a Telegram-ready post via OpenRouter AI
  3. Posts to a Telegram channel
  4. Tracks posted URLs to avoid duplicates
  5. Repeats on a configurable interval (default: every 6 hours)

Tech Stack

  • Python + asyncio
  • feedparser — RSS parsing
  • httpx — async HTTP (OpenRouter + Telegram API)
  • APScheduler — interval scheduling
  • OpenRouter (nvidia/nemotron-3-super-120b-a12b:free) — AI rewriting

Setup

python -m venv venv
venv\Scripts\activate      # Windows
pip install -r requirements.txt

Copy .env.example to .env and fill in the values:

OPENROUTER_API_KEY=your_key
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHANNEL_ID=-100xxxxxxxxxx
POST_INTERVAL_HOURS=6

Important: The bot must be added as an administrator of the Telegram channel.

Configure RSS Sources

Edit data/sources.json to add or change RSS feeds:

[
  {
    "name": "TechCrunch AI",
    "url": "https://techcrunch.com/category/artificial-intelligence/feed/",
    "topic": "AI"
  }
]

Run

python -m src.main

The bot runs immediately on start, then posts again every POST_INTERVAL_HOURS hours.

Project Structure

src/
  parser.py    # RSS fetching and parsing
  ai.py        # Article rewriting via OpenRouter
  poster.py    # Telegram posting
  history.py   # Deduplication via JSON cache
  main.py      # Scheduler and entry point
data/
  sources.json # RSS feed list
  history.json # Auto-generated, tracks posted URLs

About

Automated Telegram channel poster — fetches RSS feeds, rewrites with AI, posts on schedule

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages