Repository navigation
nitter-cli v0.8.0
v0.8.0 — 2026-09-24
Search result ordering, a stricter contract for limits and page budgets, and pagination and input fixes so long threads and pipelines behave.
Added
nitter search --sort latest|top:searchgains a result-ordering flag —latest(default, the
newest-first feed, byte-identical to the previous request) ortop(the popular-results feed). The
ordering is handed to BOTH backends (Nitter'sf=parameter and FxTwitter'sfeed) and carried on every
pagination page, so a mix-mode fallback never answers with a different ordering than the one requested.
The value is case- and whitespace-insensitive; any other value exits 2, and--sortwith--type user
exits 2 as well (profile search has no ordering). Note thatcomments --sort likes|recencyis a different
domain: neither value set is valid for the other command.
(#6)
Changed
--limitand--max-pageshave no "unlimited" value: both are caps and must be>= 1when given;0
and negative values are usage errors (exit 2).0used to mean "all" for--limitand "lift the page cap"
for--max-pages, and the two fetch lanes read it in opposite ways — the Nitter lane as unbounded, the
FxTwitter lane as zero — so one flag produced different results depending on which lane answered. The
default_limitandmax_pagesconfig keys follow the same rule (both>= 1;retry_attemptsstill
accepts0). Migration: replace--limit 0with an explicit cap, and--max-pages 0with a large
page budget; for a deep backlog state both. The removeduser --max-pages 0also drops the
"paginate until upstream exhaustion" escape hatch. Prefer the per-call flags over raising the global
max_pages:watch(per cycle) andcircle run(per member) read that same key, andsearchignores
--max-pageson the FxTwitter lane, whose endpoint is fetched in a single request.
(f768b5e)trends --limitnow defaults to20(it was0, i.e. every trend the endpoint returned). Pass a
larger value to see more.
(f768b5e)fetch_backendhas onlymixandfx: thenittervalue was removed. Its meaning — instances only,
never the fast lane — has no equivalent among the two remaining modes, and quietly mapping it ontomix
would add the fast lane the setting used to exclude, so it is now rejected with a message namingmix.
To pin one invocation to your own instances, pass--instance URL; that flag also remains the way to
exercise a single instance. Migration: replacefetch_backend = "nitter"withfetch_backend = "mix"
(or"fx"), and use--instance URLwhere you want the instance path for a single call.
(f768b5e)fetch_backend = fxno longer falls back to Nitter forget: that fallback replaced the real Fx error
withno instances configuredwhenever no instance was configured, hiding the cause. Underfxthe fast
lane is the only permitted source and its error surfaces as it is;mixkeeps its fallback unchanged.
(f768b5e)--instanceis now documented by what it actually covers: it applies to the commands that have an
instance path (user,search,get,list). The Fx-only capabilities (comments,following,
profile,quotes,trends,search --type user) ignore it, and the override is a plain URL that
carries no basic-auth credentials.
(f768b5e)
Removed
- The
nittervalue offetch_backend— see theChangedentry above for the migration.
(f768b5e) user --max-pages 0as the spelling for "no page cap".
(f768b5e)
Fixed
user --limit 0andcircle run --limit 0no longer return an empty result on the FxTwitter lane: the
lane treatedcount <= 0as "zero tweets" and answered with an empty success, so a documented "fetch
everything" silently produced nothing — andmixaccepted that as a success instead of falling back to the
instances. The value is now a usage error, and the lane itself rejects a non-positive count.
(f768b5e)watch --max-pages 0no longer silently overrides the configuredmax_pages: it was accepted and made
the cycle fall back to the built-in default of 5 pages, ignoring the config value entirely. It is now a
usage error.
(f768b5e)- A repeated cursor no longer burns the page budget: pagination followed the upstream cursor chain without
remembering where it had been, so a chain that revisited a cursor (A → B → A) kept issuing requests until the
page budget ran out, and the result could carry the same page more than once. The Nitter HTML path, the
Nitter search/list paths and the FxTwitter lane now stop as soon as a cursor repeats; a stalled chain reports
no continuation cursor instead of a fabricated one.
(#6) get,mediaanddownload: a positional reference now wins over stdin — the commands read stdin only
when they receive no positional reference AND stdin is not a TTY. Previously they read stdin first and
rejected the input as ambiguous (status reference given both as an argument and on stdin, exit 2); on a
pipe whose writer stayed open that read blocked forever, sonitter get <REF>(ormedia/downloadwith
positional refs) inside a pipeline hung instead of running. Having both is no longer an error; an explicitly
empty positional argument (nitter get "") is a usage error (exit 2) and never falls back to stdin.
(#6)quotesandsearch --type userno longer report an upstream failure as an empty result: the FxTwitter
quote and user-search routes share one upstream query that answers 404 intermittently (window-dependent;
measured around 85% failures in the 2026-09-24 sample window), and both commands turned that 404 into an
empty success — a tweet with 44 quotes printed[]and exited 0. The 404 now surfaces asnot_found
(exit 1).quotescross-checks the tweet's own quote count first, so a tweet that genuinely has no quotes
still exits 0 with an empty result;search --type usertreats an empty list as the "no matches" answer.
(f768b5e)- Error messages no longer carry the request URL or the upstream body: the FxTwitter lane interpolated the
full request URL — query string included — into transport and 404 errors, so a failed search printed the
caller's own search terms, and it echoed the upstreammessagefield. Errors now name the route only, as the
sdkredaction contract requires.
(f768b5e) user --helpno longer describes the RSS layer as single-page: it claimed the RSS feed is one page and
that--max-pagesonly capped the HTML fallback. The feed is read page by page along itsMin-Idcursor and
each layer counts its own--max-pagesbudget, so the help text contradicted the implementation and every
document that describes the scan; a bounded fetch also stops before the next page once--limitis
satisfied. Help text only — no behavior change.
(#6)- Operator skill and troubleshooting corrections: the agent skill stated that the
HTTPS_PROXY/ALL_PROXY
environment variables were a fallback for instance traffic (they apply to the FxTwitter fast lane and
updateonly), gaveints >= 0as theconfig setvalue range (onlyretry_attemptsaccepts0;
default_limit/max_pagesrequire>= 1), describedfollowing --limitas capping pages rather than
profiles, and both CLI references now state thatwatchinitializes an empty firstuser:cycle while
tag:/list:sources wait for a tweet.
(#6)
Full Changelog: v0.7.3...v0.8.0
v0.8.0 — 2026-09-24
搜索结果排序、更严格的限制与页数预算契约,以及让长串与管道回归正常的翻页与输入修复。
新增
nitter search --sort latest|top:search新增结果排序 flag——latest(默认,最新优先,与上一版
请求完全一致)或top(热门结果)。该排序会同时下发给两个后端(Nitter 的f=参数与 FxTwitter 的
feed),并在每一页翻页请求中保持不变,因此 mix 模式降级时绝不会给出与请求不同的排序。取值对大小写
和首尾空白不敏感;其他值退出 2,--sort与--type user同时给出同样退出 2(用户搜索没有排序概念)。
注意comments --sort likes|recency属于不同域:两套取值互不通用。
(#6)
变更
--limit与--max-pages不再有「不限制」这个取值:两者都是上限,显式传值必须>= 1;0与负数
都是用法错误(退出 2)。0过去对--limit表示「全部」、对--max-pages表示「取消上限」,而两条
取数车道对它的理解相反——Nitter 侧当作无上限,FxTwitter 侧当作零条——于是同一个 flag 会因为最终由
哪条车道应答而给出不同结果。配置键default_limit与max_pages同规则(均>= 1;retry_attempts
仍接受0)。迁移:把--limit 0换成一个明确的上限,把--max-pages 0换成一个大的页数预算;
要深挖积压就两者都写大。user --max-pages 0的移除也一并去掉了「翻页到上游耗尽」这条逃生通道。请优先
用逐次传入的 flag,而不是调大全局max_pages:watch(每轮)与circle run(每个成员)读的是同一个键;
而search在 FxTwitter 车道上忽略--max-pages——那条车道只发一次请求。
(f768b5e)trends --limit默认值改为20(原为0,即接口返回的全部热搜)。要看得更多请传更大的值。
(f768b5e)fetch_backend只剩mix与fx:nitter值已移除。它的语义——只用实例、绝不走快车道——在剩下的两种
模式里没有等价物,而悄悄映射成mix会加上它原本要排除的快车道,因此现在会被拒绝,并在错误信息里指明
改用mix。要让某一次调用只走自建实例,传--instance URL;该 flag 也仍是验证单个实例的手段。
迁移:把fetch_backend = "nitter"改成"mix"(或"fx"),需要单次走实例路径时用--instance URL。
(f768b5e)fetch_backend = fx下get不再降级到 Nitter:该降级会在没有配置实例时把真实的 Fx 错误替换成
no instances configured,掩盖了真因。现在fx模式下快道是唯一允许的来源,错误按原样上报;mix
的回退保持不变。
(f768b5e)--instance的文档改为写明它实际覆盖的范围:它只对有实例路径的命令生效(user、search、
get、list);六个 fx-only 能力(comments、following、profile、quotes、trends、
search --type user)会忽略它,且该覆盖是纯 URL、不携带 basic-auth 凭证。
(f768b5e)
移除
修复
user --limit 0与circle run --limit 0在 FxTwitter 车道上不再返回空结果:该车道把count <= 0
当作「零条推文」并返回空成功,于是文档承诺的「取全部」静默变成什么都没有——而mix还会把它当作成功,
不再回退到实例。现在该取值是用法错误,车道自身也拒绝非正数 count。
(f768b5e)watch --max-pages 0不再静默覆盖配置里的max_pages:它过去被接受,并让该轮退回内置默认的 5 页,
完全忽略配置值。现在它是用法错误。
(f768b5e)- 重复游标不再烧掉分页预算:翻页会跟随上游游标链却不记录走过的位置,因此上游若重复给出同一个游标
(A → B → A),请求会一直发到页数预算耗尽,结果里还可能同一页出现多次。Nitter 的 HTML 路径、Nitter 的
search/list 路径与 FxTwitter 车道现在一旦遇到重复游标就停止;停滞的链条返回「无后续游标」,而不是编造一个。
(#6) get、media、download:位置参数优先于标准输入——仅当未提供位置参数且 stdin 非 TTY 时才读取
stdin。此前命令会先读 stdin,再以歧义错误拒绝输入(status reference given both as an argument and on stdin,退出 2);当管道的写端保持打开时,这次读取会永久阻塞,导致管道中的nitter get <REF>(以及带
位置参数的media/download)挂起而非执行。两种同时给出不再报错;显式传入的空位置参数
(nitter get "")是用法错误(退出 2),绝不回退读取 stdin。
(#6)quotes与search --type user不再把上游故障当作空结果:FxTwitter 的引用与用户搜索路由共用同一条
上游查询,会间歇性返回 404(分窗口:2026-09-24 那个采样窗口实测约 85% 失败),而这两个命令都把这个 404
变成了空成功——一条有 44 条引用的推文会打印[]并退出 0。现在 404 上报为not_found(退出 1)。
quotes会先回查推文自身的引用计数,所以确实没有引用的推文仍退出 0 并输出空结果;search --type user
则把空列表当作它本来的含义——「没有匹配」。
(f768b5e)- 错误信息不再携带请求 URL 与上游响应体:FxTwitter 车道此前把含查询串的完整 URL 拼进传输错误与 404
错误,导致搜索失败时会把调用者自己的搜索词打印出来,并且会回显上游的message字段。现在错误只写路由
路径,符合sdk的脱敏契约。
(f768b5e) user --help不再把 RSS 说成单页:它此前声称 RSS 只有一页、--max-pages只作用于 HTML 回退。实际上
RSS 会沿其Min-Id游标逐页读取、页数预算按层各算一份,因此该帮助文本与实现、以及所有描述该扫描的文档
相矛盾;此外--limit满足后就不再请求下一页。仅改帮助文本,行为不变。
(#6)- 操作 skill 与排障文档订正:agent skill 曾把
HTTPS_PROXY/ALL_PROXY环境变量写成实例流量的回退
(它们只作用于 FxTwitter 快车道与update)、把config set的取值区间写成ints >= 0(只有
retry_attempts接受0;default_limit/max_pages必须>= 1)、把following --limit描述成限制
页数而非 profile 条数;两份 CLI 参考现在也写明watch的user:源空首抓会完成初始化,而tag:/
list:源要等某轮返回至少一条推文。
(#6)
Full Changelog: v0.7.3...v0.8.0