Skip to content

feat: add CODLeague live feed poller#4838

Closed
V1A70 wants to merge 1 commit into
jo-inc:masterfrom
V1A70:feat/codleague-live-feed
Closed

feat: add CODLeague live feed poller#4838
V1A70 wants to merge 1 commit into
jo-inc:masterfrom
V1A70:feat/codleague-live-feed

Conversation

@V1A70

@V1A70 V1A70 commented May 30, 2026

Copy link
Copy Markdown

Summary

  • Adds codleague-poller.js — a self-contained Node.js script that polls x.com/CODLeague every 60 seconds via the camofox browser API and serves a live tweet feed over SSE on port 3001
  • Parses Playwright ARIA snapshots to extract clean tweet text (body text nodes, emoji, hashtags, @mentions) while filtering out engagement counts, UI metadata, pinned tweets, and quoted-tweet bleed-through
  • Supports authenticated browsing via cookie import (JSON or Netscape format) to avoid rate limiting
  • Serves a standalone dark-mode feed UI at http://localhost:3001 with real-time SSE push and a "Show N new tweets" banner
  • CORS headers enabled so the feed embeds cleanly into external panels

Usage

# Start camofox first
npm start

# Then in a second terminal
node codleague-poller.js ~/.twitter-cookies.json
# Feed available at http://localhost:3001

Test plan

  • npm start launches camofox on port 9377
  • node codleague-poller.js starts without errors
  • http://localhost:3001 loads the feed UI
  • Tweets appear within ~60 seconds and update live
  • Cookie import prevents login-wall blocks on x.com
  • No engagement counts, metadata, or pinned tweets in output

🤖 Generated with Claude Code

Adds codleague-poller.js — a self-contained Node.js script that polls
x.com/CODLeague via the camofox browser API and serves a live tweet
feed over SSE on port 3001.

Features:
- Navigates x.com/CODLeague every 60 seconds using the camofox REST API
- Parses Playwright ARIA snapshots to extract clean tweet text (text
  nodes, emoji, hashtags, @mentions) while filtering engagement counts,
  metadata, pinned tweets, and quoted-tweet content
- Imports Twitter session cookies (JSON or Netscape format) for
  authenticated browsing to avoid rate limiting
- Serves a standalone dark-mode feed UI at http://localhost:3001
- Broadcasts new tweets in real time via Server-Sent Events
- Includes a "Show N new tweets" banner for users scrolled down
- CORS headers enabled so the feed can be embedded in external panels

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@skyfallsin

Copy link
Copy Markdown
Contributor

Thanks for writing this up, but this is not part of core, so I'm closing it. I do think you should make it a plug-in and host it on your own GitHub.

@skyfallsin skyfallsin closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants