Skip to content

Trending: daily term rollup and a public /api/trending - #271

Merged
ralyodio merged 2 commits into
mainfrom
trending-rollup
Nov 7, 2026
Merged

ralyodio merged 2 commits into
mainfrom
trending-rollup

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Crawlproof's trend source (SameBrain) returns no topics, so this gives it a real one. Grouping two weeks of items on a request does not finish, so the poller rolls each finished day into trend_days/trend_terms, and GET /api/trending ranks this week against last by rate.

A 1 in 4 sample of English blog and news titles, counted per feed so a firehose is one voice. Overlapping terms fold into one subject. The job is outside the catch-up gate because prod runs CRAWL_CATCHUP=1. The migration applies at poller boot.

🤖 Generated with Claude Code

ralyodio and others added 2 commits November 7, 2026 02:29
Two weeks of feed_items cannot be grouped on a request, so the poller rolls each
finished UTC day into trend_days and trend_terms: a one in four sample of English
blogs and news, counting feeds per term so a firehose is one voice. The API ranks
this week against last by rate, and folds overlapping terms into one subject.

The job sits outside the catch-up gate because prod runs CRAWL_CATCHUP=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 09f44d5 into main Nov 7, 2026
3 checks passed
@ralyodio
ralyodio deleted the trending-rollup branch November 7, 2026 02:33
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.

1 participant