mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
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
12 lines
569 B
JSON
12 lines
569 B
JSON
{
|
|
"domain": "reddit.com",
|
|
"commands": {
|
|
"sub": { "open": "https://www.reddit.com/r/{name}/.rss", "args": ["name"] },
|
|
"new": { "open": "https://www.reddit.com/r/{name}/new/.rss", "args": ["name"] },
|
|
"top": { "open": "https://www.reddit.com/r/{name}/top/.rss?t=week", "args": ["name"] },
|
|
"post": { "open": "https://www.reddit.com/comments/{id}/.rss", "args": ["id"] },
|
|
"user": { "open": "https://www.reddit.com/user/{name}/.rss", "args": ["name"] },
|
|
"search": { "open": "https://www.reddit.com/search.rss?q={query}", "args": ["query"] }
|
|
}
|
|
}
|