Skip to content

reddit: read the www.reddit.com Atom feeds, old.reddit.com is behind a login now - #53

Merged
only-cli merged 1 commit into
mainfrom
fix/reddit-atom-feeds
Sep 4, 2026
Merged

reddit: read the www.reddit.com Atom feeds, old.reddit.com is behind a login now#53
only-cli merged 1 commit into
mainfrom
fix/reddit-atom-feeds

Conversation

@only-cli

@only-cli only-cli commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Closes #52.

Every oc reddit verb pointed at old.reddit.com, which has redirected logged-out readers to a login page since 30 June 2026, so the shortcut rendered an empty login page. The .json views on www.reddit.com are not a way back: they answer 403 to anything without an OAuth token, whatever the User-Agent or TLS fingerprint. The Atom feeds on www.reddit.com still answer, and the existing feed converter already renders them.

What changes:

  • sub, post, user, and search point at the feeds; new <name> and top <name> are added since the feeds ship those sorts.
  • README row says "via the Atom feeds on www.reddit.com" and lists the two new verbs.
  • Changelog entry under Unreleased, including the two limits worth knowing: the feeds carry no scores or comment counts, and anonymous reddit.com allows roughly ten requests a minute per address.
  • Offline coverage: a three-entry Reddit post feed fixture with a distill test for the post-then-comments shape, and a sites test that pins every reddit verb to a www.reddit.com feed URL.

Measured against live feeds: the ClaudeAI subreddit renders in about 480 tokens from a 21,500 token payload, a 22-comment thread in about 1,000, and a 193-comment thread in 508 at the default budget with next for the rest.

Follow-up, not in this PR: the Chrome fingerprint drew a 403 and a 429 on a feed in the same minute that the Firefox fingerprint and plain curl got 200, so the chrome-first order in fetch.js can spend one of the ten requests per minute on a refusal before the Firefox retry lands.

…a login now

Since 30 June 2026 every logged-out request to old.reddit.com, HTML, .json,
and .rss alike, lands on /login/?reason=lor2, so every oc reddit verb rendered
an empty login page. The www.reddit.com .json views closed a month earlier and
answer 403 to anything without an OAuth token, whatever the User-Agent or TLS
fingerprint, so they are not a way back in either.

The Atom feeds on www.reddit.com still answer without a login, and the feed
converter already turns one into a page: a subreddit renders in about 480
tokens from a 21,500 token payload, a thread with 22 comments in about 1,000.
Every verb now points at a feed, and new <name> and top <name> join them,
since the feeds offer those sorts for free. The feeds carry no scores or
comment counts, and anonymous reddit.com allows roughly ten requests a minute
per address, which the changelog says plainly.

The fixture is a three-entry post feed in Reddit's shape, one entry for the
post and one per comment, so the thread rendering is covered offline.

Closes #52
@only-cli
only-cli merged commit e7a36a6 into main Sep 4, 2026
4 checks passed
@only-cli
only-cli deleted the fix/reddit-atom-feeds branch September 4, 2026 12:45
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.

oc reddit is dead: old.reddit.com redirects to a login page, www .json answers 403

1 participant