Repository navigation
Releases
nitter-cli v0.9.1
v0.9.1 — 2026-10-25
Reads existing configuration from read-only config directories and clarifies the operator skill's guidance for authorized instance maintenance, download inputs, and rate-limit handling.
Changed
- Operator skill clarifications: instance maintenance under explicit user authorization reads and edits only what the task requires;
config get/config setmanage scalar keys only ([[instances]]stays hand-edited TOML);/pic/links and direct image/video URLs are not download inputs; probe instances only for a real health decision, and treat HTTP 429 as rate limiting rather than a configuration error.
(#23)
Fixed
- Existing configuration works in read-only directories: when the config file already exists, initialization returns early without creating staging files, so
config path/config getsucceed on a read-only config directory. First-run initialization remains atomic and never overwrites an existing config; write commands still require a writable directory and report the staging failure explicitly.
(#23)
Full Changelog: v0.9.0...v0.9.1
v0.9.1 — 2026-10-25
支持在只读配置目录中读取已有配置;操作 Skill 澄清实例维护授权、下载输入与限流处理指引。
变更
- 操作 Skill 澄清:经用户明确授权的实例维护只读改任务所需的最小配置;
config get/config set仅管理标量键([[instances]]仍为手工编辑的 TOML);/pic/链接与图片/视频直链不是下载输入;仅在确有实例健康判定需要时探测,HTTP 429 属限流而非配置错误。
(#23)
修复
- 只读配置目录下已有配置可用:配置文件已存在时,初始化直接返回、不再创建暂存临时文件,
config path/config get在只读目录下正常工作。首次初始化仍为原子操作且绝不覆盖已有配置;写命令仍需目录可写,暂存失败会明确报告。
(#23)
Full Changelog: v0.9.0...v0.9.1
Contributors / 贡献者
nitter-cli v0.9.0
v0.9.0 — 2026-09-29
Adds the download --clean-temp maintenance mode for pruning aged temporary downloads and emptied subdirectories, documents the circle reference and troubleshooting guidance, and pins circle error exit contracts.
Added
nitter download --clean-temp <DIR> [--older-than DURATION]: an explicit maintenance mode that removes regular files older than the window from a named directory (default168h;0sremoves everything) and prunes the subdirectories it emptied. It never downloads, never reads stdin, and never creates directories. Guardrails refuse root directories (/, drive roots such asC:\, and UNC share roots) and symlink/junction roots with usage errors (exit 2) or refusal (exit 1), and skip symlinks inside the tree without failing the run. Conflicts with REFs or download-only flags exit 2.
(#20)
Changed
- Circle reference routing and troubleshooting guidance: added dedicated documentation for creator circle operations (
skills/nitter-cli/references/circle.md), added circle-specific warnings and recovery rows to the troubleshooting guide, and pinned the circle exit code contracts for invalid handles and execution failures.
(#19)
Full Changelog: v0.8.2...v0.9.0
v0.9.0 — 2026-09-29
新增 download --clean-temp 维护模式,安全清理过期临时下载文件并修剪空子目录;完善创作者圈子参考文档与故障排查指引,并固化圈子错误退出码契约。
新增
nitter download --clean-temp <DIR> [--older-than DURATION]:显式维护模式,删除指定目录中超过时间窗口的普通文件(默认168h;0s表示全部),修剪因此变空的子目录并在 stderr 输出清理统计。该模式不下载、不读 stdin、不创建目录;对根目录(如/、C:\、UNC 共享根)及符号链接/Junction 根进行拦截防护(分别返回退出码 2 与 1),遍历过程中安全跳过子树内的符号链接且不引发失败;禁止与 REF 或下载专属 flag 混用(exit 2)。
(#20)
变更
- 圈子文档路由与排障指引:新增独立的创作者圈子参考手册(
skills/nitter-cli/references/circle.md),在故障排查表中增补圈子告警与恢复说明,并固化圈子非法 handle 与执行失败的退出码契约测试。
(#19)
完整变更:v0.8.2...v0.9.0
Contributors / 贡献者
nitter-cli v0.8.2
v0.8.2 — 2026-09-26
Adds the followers, thread and typeahead commands and circle remove, and corrects the FxTwitter lane contract, the update failure guarantee and the operator skill's upgrade path.
Added
nitter followers <HANDLE>: the follower-list counterpart offollowing— fetches the accounts
following a handle (1–15 letters, digits or underscores, without the@) and prints one row per follower
profile (@<handle> <name> <followers_count> <bio>).--limit Ncaps the number of profiles
(default 20, must be >= 1);--json/--ndjsonfollow the shared output modes. The route always queries
api.fxtwitter.comregardless offetch_backend;--instancedoes not apply.
(#14)nitter thread <TWEET_ID>: fetches the full self-thread containing a status and prints it root first
(one row per status:<ID> <YYYY-MM-DD HH:MM> @<handle> <single-line text>). The ID must be the
numeric status ID (1–20 digits; URL and other reference forms belong toget); a status that is not part
of a thread answersnot_found(exit 1). The route always queriesapi.fxtwitter.com;--instancedoes
not apply.
(#14)nitter typeahead <QUERY>: account-name completion through the user-completion endpoint. This is a
completion lookup, NOT search: no query operators, the upstream answers at most ~10-20 accounts and there
is no pagination — usesearchfor real queries.--limit Ncaps what is printed (default 20, must be= 1; the upstream may answer fewer). The route always queries
api.fxtwitter.com;--instancedoes not
apply.
(#14)nitter circle remove <NAME> <HANDLE>: removes a handle from a circle, editing only the circle's
users array incircles.toml. The profile sidecar (~/.nitter-cli/profiles.toml, recordedrole/note
included) is never read nor written, so removing a member keeps their cached profile. Idempotent:
removing a handle that is not a member prints an explicitnot a member; nothing changednotice on
stderr and exits 0.
(#14)
Changed
circle addnow fetches the new member's profile facts: after the roster write succeeds and a new
member was actually inserted, the added handle is sent toapi.fxtwitter.comfor a best-effort profile
fetch whose fact fields (name,bio,followers_count,fetched_at) are merged into the sidecar, so
circle showcan render a fresh member without waiting forcircle refresh. The judgement fields
(role/note/noted_at) are never touched. Every failure on that path is only a warning on stderr: the
roster write already succeeded, so the command still exits 0 and the facts simply arrive with the next
circle refresh.
(#14)- The four remaining FxTwitter lane functions enforce the same argument contract as the
timeline pair:SearchTweets,SearchUsers,FetchUserFollowingandFetchQuotesnow
reject an empty query/handle and a non-positive count/limit withinvalid_argumentinstead of
silently defaulting to the upstream page size, dropping the limit parameter, or returning an
empty success. The CLI has never been able to reach these paths (it rejects--limit < 1with
exit 2 first), so this aligns the lane contract without a user-visible behavior change.
(#13) nitter update's failure guarantee is now stated for what it covers: the help text and
the CLI reference said every failure leaves the installation untouched, but the final
replacement is not covered — on WindowsReplaceFileWis not atomic and can fail after
moving the old binary aside. The wording now limits the guarantee to failures before the
replacement and says to verify the installed binary before retrying. No behavior change.
(#15)- The CLI reference, README and operator skill now present
nitter updateas the supported
upgrade path: the Skill no longer callsupdatean installer it forbids, the upgrade steps
settle the Skill tag and its authorization before replacing the binary, and the binary and the
Skill are documented as one versioned pair.
(#15)
Fixed
circle addwrites the roster back under the matched section key: a circle whose innerkey
field differs from its section name no longer gets a second section on add — the member lands in
the circle that was actually matched, and a duplicate add no longer triggers a profile fetch.
(#14)mixno longer replaces the fast lane's failure reason withno instances configured: when
the FxTwitter attempt failed and the instance path had nothing to answer with (no instances
configured, or all cooling down), the error the user saw was only the chooser's answer. The
chooser error now carries the fast lane's cause, e.g.chooser: upstream_unavailable: no instances configured (fx attempt: fxtwitter.SearchTweets: not_found: resource not found (404): /2/search).
A real instance failure is reported unchanged, andfetch_backend = fx(which never falls back)
is unaffected.
(#13)
Full Changelog: v0.8.0...v0.8.2
v0.8.2 — 2026-09-26
新增 followers、thread、typeahead 三个命令与 circle remove,并修正 FxTwitter 车道契约、update 失败保证与产品 skill 的升级路径。
新增
nitter followers <HANDLE>:following的镜像能力——拉取关注某 handle(1–15 个字母、数字或
下划线,不带@)的账号,每个粉丝档案一行(@<handle> <name> <followers_count> <bio>)。
--limit N限制档案条数(默认 20,必须 ≥ 1);--json/--ndjson遵循统一输出模式。该路由无论
fetch_backend怎么设都恒走api.fxtwitter.com;--instance不适用。
(#14)nitter thread <TWEET_ID>:拉取包含某条推文的完整自帖串并从主楼开始输出(每条状态一行:
<ID> <YYYY-MM-DD HH:MM> @<handle> <单行文本>)。ID 必须是纯数字 status ID(1–20 位数字;URL
等其他引用形态归get);不属于任何串的推文按not_found应答(退出 1)。该路由恒走
api.fxtwitter.com;--instance不适用。
(#14)nitter typeahead <QUERY>:经 user-completion 端点做账号名补全。这是补全查询,不是搜索
(completion, NOT search):无查询算子,上游最多应答约 10–20 个账号,且不可翻页——真正的查询请用
search。--limit N只限制打印条数(默认 20,必须 ≥ 1;上游可能给得更少)。该路由恒走
api.fxtwitter.com;--instance不适用。
(#14)nitter circle remove <NAME> <HANDLE>:从圈子移除一个 handle,只编辑circles.toml中该圈子的
users 数组。档案侧写文件(~/.nitter-cli/profiles.toml,含已记录的role/note)从不被读取或写入,
因此移除成员会保留其缓存档案。幂等:移除非成员 handle 时在 stderr 打印明确的
not a member; nothing changed提示并退出 0。
(#14)
变更
circle add现在会拉取新成员的档案事实:名册写入成功且该成员确实是新增的情况下,该 handle 会被
发送到api.fxtwitter.com做一次尽力而为的档案拉取,事实字段(name、bio、followers_count、
fetched_at)合并进侧写文件,circle show无需等待circle refresh即可渲染新成员。
判断字段(role/note/noted_at)绝不被触碰。该路径上的任何失败都只是 stderr 一行警告:
名册写入已成功,命令仍退出 0,事实随下一次circle refresh到位。
(#14)- 其余四个 FxTwitter 车道函数现在与时间线函数对执行同一套参数契约:
SearchTweets、SearchUsers、
FetchUserFollowing与FetchQuotes现在会对空 query/handle 与非正数 count/limit 返回
invalid_argument,而不是静默回退到上游页大小、丢弃 limit 参数或返回空成功。CLI 从未触达过这些路径
(它会先以退出 2 拒绝--limit < 1),因此这只是对齐车道契约,没有用户可见的行为变化。
(#13) nitter update的失败保证现在按它实际覆盖的范围表述:帮助文本与 CLI reference 原先写「任何失败都不会改动现有安装」,但最终替换动作并不在这条保证内——Windows 上ReplaceFileW不是原子的,可能在把旧二进制改名到一旁之后失败。现在措辞把保证限定为替换动作之前的失败,并提示重试前先核实已安装的二进制。行为无变化。
(#15)- CLI reference、README 与产品 skill 现在把
nitter update作为受支持的升级路径:skill 不再
把update称作它自己禁止的安装器;升级步骤会在替换二进制之前先落实 Skill 的 tag 与授权;
二进制与 skill 被写明为一对版本。
(#15)
修复
circle add现在把名册写回实际匹配到的 section key:当某个圈子的内层key字段与它的
section 名不同时,添加成员不再产生第二个 section —— 成员会写进真正被匹配到的那个圈子,
且重复添加不再触发档案拉取。
(#14)mix不再用no instances configured覆盖快车道的失败原因:当 FxTwitter 尝试失败、而实例路径又
无从应答(未配置实例,或全部在冷却中)时,用户看到的错误只剩选择器的答复。现在选择器错误会携带快车道
的真因,例如chooser: upstream_unavailable: no instances configured (fx attempt: fxtwitter.SearchTweets: not_found: resource not found (404): /2/search)。真实的实例失败仍按原样上报;
fetch_backend = fx(从不回退)不受影响。
(#13)
Full Changelog: v0.8.0...v0.8.2
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 也仍是验证单...
nitter-cli v0.7.3
v0.7.3 — 2026-09-23
Accurate tweet-count mapping for FxTwitter profiles, multi-category subscription isolation guidance, and documentation sample corrections.
Changed
- Watch documentation recommends one
--state-dirper subscription category:watchdedup state is keyed
by source key inside oneseen.json, so two categories watching the same account shared the keyuser:HANDLE
— the category whose cycle ran first marked the tweet seen and the other one dropped it silently (no error,
--oncestill exited 0). The CLI reference and both READMEs now tell you to give each category its own
--state-dir ~/.nitter-cli/state/<category>and to pass that same flag on every scheduler line of that
category, and they explain the concurrent-write case as well.
(#4) - The NASA example status in the documentation now belongs to NASA: the example status ID shared by both
READMEs, the CLI reference and the SDK guide resolved to a different account's tweet, so a copiednitter get
/nitter media/nitter downloadline fetched something other than the NASA status the surrounding text
claimed. Every example now uses a real NASA status.
(#4)
Fixed
profile,followingandsearch --type userreport the real tweet count:tweets_countwas always0
because the FxTwitter profile and author objects carry the count understatuses, a key the decoder never read
(it only mapped the legacytweets_count/statuses_countspellings). The decoder now readsstatusesfirst,
so theTweets:line of the profile card and thetweets_countfield of everyprofileenvelope carry the
source's real count.
(#4)
Full Changelog: v0.7.2...v0.7.3
v0.7.3 — 2026-09-23
准确映射 FxTwitter 用户名片的发推数、补充多类别订阅隔离指南,以及文档示例推文纠偏。
变更
- watch 文档建议每个订阅类别使用各自的
--state-dir:watch 去重状态在一个seen.json内以源键为键,
因此两个类别订阅同一账号时会共用user:HANDLE——先跑的那一轮把推文标记为已见,另一个类别就静默丢弃它
(不报错,--once仍退出 0)。CLI 参考与两份 README 现在建议给每个类别各自的
--state-dir ~/.nitter-cli/state/<category>,并在该类别的每一行调度命令里都传同一个 flag,
同时说明了并发写入的情形。
(#4) - 文档中的 NASA 示例推文现在确实属于 NASA:两份 README、CLI 参考与 SDK 指南共用的示例 status ID
实际解析到另一个账号的推文,照抄nitter get/nitter media/nitter download示例取到的并不是正文
所称的 NASA 推文。所有示例现已改用真实存在的 NASA 推文。
(#4)
修复
profile、following与search --type user报告真实发推数:tweets_count此前恒为0,因为
FxTwitter 的 profile 与 author 对象把该计数放在statuses键下,而解码器从未读取该键(只映射了遗留的
tweets_count/statuses_count写法)。解码器现在优先读取statuses,因此名片卡的Tweets:行与所有
profile信封的tweets_count字段都携带数据源的真实计数。
(#4)
完整变更:v0.7.2...v0.7.3
nitter-cli v0.7.2
v0.7.2 — 2026-09-23
Reliable RSS pagination, merged multi-source fetches, and the documentation corrections that came with them.
Added
- Merged RSS fetching for multi-source watches: with
--no-repostsand two or moreuser:sources, a cycle
now acquires them with ONE RSS request per batch (/{u1,u2,...}/rss, each batch kept under 250 path characters)
and splits the feed per author, instead of one request per source. The merged feed cannot represent a repost
(Nitter attributes the item to the original author), which is why this only applies when reposts are filtered
out;fetch_backend = "fx"never merges, and"mix"serves those sources from Nitter rather than the fast lane.
A batch whose request fails is not lost — the affected sources fall back to their own fetch.
(e0ac167)
Changed
- State-store errors name the operation in the same form as every other error:
watch,seen listand
seen clearreported a corrupt or unreadable state file with a prose prefix (load seen state: …) instead of
the package-qualified operation every other classified error uses. It is nowseen.Load: …(andseen.Save: …
on the write path). Kinds, exit codes and the state-file semantics are unchanged.
(cf050f5) - The documented
mixfetch routing matches measured behavior: the FAQ listedcomments,following,
profile,quotes,trendsandsearch --type useramong the commands that fall back to your own instances
on failure, and describednittermode as keeping every fetch self-hosted. Those six commands have no Nitter
equivalent and always reachapi.fxtwitter.com, andfetch_backendonly routes the timeline and status
surfaces. The text now states that split. (b526158)
Fixed
- The Nitter RSS scan follows the
Min-Idcursor instead of reading one page: a timeline whose backlog spanned
more than one feed page was silently truncated —--max-newabove one page could not be satisfied, and a first
run recorded only the first page, so anything older was never emitted. The scan now pages until the feed runs out
of cursors, the--max-pagesbudget is spent, or a page adds nothing the source has not already seen.
(564bf1b) nitter downloadreports a local disk failure as a local failure: a failed write to the target file — a full
disk, most often — surfaced asupstream_unavailableand sent the caller looking at the instance. It is now the
local_state_errorevery other local filesystem failure on the same path already used. Exit codes are unchanged
(both are exit 1). (7b271b2)
Full Changelog: v0.7.1...v0.7.2
v0.7.2 — 2026-09-23
RSS 取数可翻页、多源合并为一次请求,以及随之而来的文档修正。
新增
- 多源 watch 的合并 RSS 取数:带
--no-reposts且有两个及以上user:源时,一轮改为每批一次
RSS 请求取这些源(/{u1,u2,...}/rss,每批路径长度控制在 250 字符内),再按作者拆分 feed,而不是
逐源抓取。合并 feed 无法表示转推(Nitter 会把转推条目归到原作者名下),因此仅在过滤掉转推时启用;
fetch_backend = "fx"从不合并,"mix"下这些源改由 Nitter 提供而非快车道。某批请求失败不会丢源:
受影响的源回退到各自的抓取路径。
(e0ac167)
变更
- 状态存储错误与其他错误采用同一种操作名写法:
watch、seen list与seen clear在状态文件
损坏或不可读时,报错前缀是散文式短语(load seen state: …),而其他所有已分类错误都用包限定形式。
现改为seen.Load: …(写路径为seen.Save: …)。Kind、退出码与状态文件语义均不变。
(cf050f5) mix取数路由的文档改为与实测一致:FAQ 此前把comments、following、profile、quotes、
trends与search --type user也算进「失败时回退到自建实例」,并把nitter模式描述为「全部取数
自托管」。这两条都不成立——这六个命令没有 Nitter 对应端点,始终访问api.fxtwitter.com,而
fetch_backend只路由时间线与状态两类取数。文档现在直接说明这条分界。
(b526158)
修复
- Nitter RSS 取数改为沿
Min-Id游标翻页,不再只读一页:积压跨越多页的时间线此前会被静默截断——
超过一页的--max-new无法满足,且首跑只记录第一页,更早的推文永远不会被推送。现在扫描会一直翻页,
直到上游不再提供游标、--max-pages预算耗尽,或某一页不再带来该源未见过的新推文。
(564bf1b) nitter download把本地磁盘写失败报成本地错误:写入目标文件失败(最典型是磁盘满)此前报
upstream_unavailable,会让人去查实例;现在改为与同一路径上其它本地文件系统失败一致的
local_state_error。退出码不变(两者都是 exit 1)。
(7b271b2)
完整变更:v0.7.1...v0.7.2
nitter-cli v0.7.1
v0.7.1 — 2026-09-23
Self-updating installs, cached circle profiles, and the fixes found while verifying both.
Added
nitter updateinstalls releases: after showing the version comparison it asks for confirmation
(--confirmskips the prompt and is required when stdin is not a terminal, so a pipe is never blocked;
declining exits 0). The installer downloads only the current platform's archive, verifies its SHA-256
against the release'schecksums.txt, checks the staged binary's reported version, and only then replaces
the executable — any verification failure leaves the existing installation untouched. Ago install
installation is refused with the matchinggo installline rather than replaced, so a later install cannot
silently undo the update. On Windows the previous binary is kept as<name>.exe.oldand removed by the next
invocation; on Unix the rename is atomic and leaves nothing behind.update --checkremains read-only.
(13f13b4)- Circle member profiles (
nitter circle refresh): member metadata now lives in a machine-readable sidecar
(~/.nitter-cli/profiles.toml), keyed by lowercase handle, split into machine-refreshed facts (name,
bio,followers_count,fetched_at) and judgement that refreshes never overwrite (role,note,
noted_at).circle refresh <NAME>fetches each member's profile and merges the fact fields; a failing
member is skipped with a warning while the others continue, and its previous facts are kept.
(#2)
Changed
nitter updateno longer only prints guidance: without--checkit performs the check and then offers to
install.--proxy/config.proxynow apply to update traffic, and when both are empty the command honors
HTTPS_PROXY/ALL_PROXY.nitter downloadreports its output directory: onenote: writing to <dir>line on stderr carrying the
resolved absolute path, printed after the directory is created and before any file is written. stdout,
--jsonand--ndjsonare unaffected. (7b5080a)nitter circle showis now local-only: it joinscircles.tomlagainst the cached sidecar and performs
zero network requests, so--min-followersnow filters the cached follower count instead of fetching each
member's profile. Members with no cache keep their row with-placeholders plus a stderr note pointing at
circle refresh;--jsonrows gainname,bio,fetched_at,roleandnote. Run
nitter circle refresh <NAME>once to populate the cache.
(08ad3a6)- Proxy documentation matches measured behavior: the environment variables
HTTPS_PROXY/ALL_PROXYapply
to the FxTwitter fast lane and toupdate, but never to the nitter transport, which needs--proxyor
config proxy. The help text previously implied they applied everywhere.
(d9629ae)
Fixed
nitter update --checkon large release pages: the response bound was 1 MiB, so a repository whose
release list carries asset arrays (github.com/cli/cli returns ~4.7 MB per page) failed with
decode response: unexpected EOF. The bound is now 32 MiB — still a bound, no longer reachable by a real
page. (eb924c8)updateinstall-source detection on Windows: the executable path was resolved (symlinks and 8.3 short
names) while theGOBIN/GOPATHentry was compared verbatim, so ago installbinary could be
misclassified as an archive install and be replaced by self-update. Both sides are now canonicalized.
(0abcfce)
v0.7.1 — 2026-09-23
自替换安装、缓存式圈子成员档案,以及验证两者时发现的问题修复。
新增
nitter update可安装新版本:显示版本对比后询问确认(--confirm跳过询问;stdin 非终端时
必须给出,因此绝不会阻塞管道;拒绝安装退出 0)。安装器只下载本平台归档,用发布的
checksums.txt校验 SHA-256,再校验暂存二进制报告的版本,全部通过后才替换可执行文件——
任何校验失败都不会改动现有安装。go install安装会被拒绝并给出对应的go install行而不做
替换,避免后续安装静默抹掉更新。Windows 上旧二进制保留为<name>.exe.old,由下次调用清理;
Unix 上重命名是原子的,不留残留。update --check仍为只读。
(13f13b4)- 圈子成员档案(
nitter circle refresh):成员元数据改存机器可读的侧写文件
(~/.nitter-cli/profiles.toml),以小写 handle 为键,分为机器刷新的事实字段
(name、bio、followers_count、fetched_at)与刷新永不覆盖的判断字段
(role、note、noted_at)。circle refresh <NAME>拉取每个成员的 profile 并合并事实字段;
单个成员失败时 stderr 警告并继续,其原有事实保留不变。
(#2)
变更
nitter update不再只打印指引:不带--check时它执行检查并提供安装。--proxy/config.proxy
现在对 update 的网络请求生效;两者都为空时会读取HTTPS_PROXY/ALL_PROXY。nitter download报告输出目录:在 stderr 输出一行note: writing to <dir>(解析后的绝对路径),
时机在目录创建之后、写入任何文件之前。stdout、--json与--ndjson不受影响。
(7b5080a)nitter circle show改为纯本地:与缓存的侧写文件 join,零网络请求;因此--min-followers
改为过滤缓存的粉丝数,不再逐个成员拉取 profile。无缓存的成员保留行并以-占位,
同时在 stderr 给出一条指向circle refresh的提示;--json行新增name、bio、fetched_at、
role、note。先跑一次nitter circle refresh <NAME>填充缓存。
(08ad3a6)- 代理文档与实测行为对齐:环境变量
HTTPS_PROXY/ALL_PROXY对 FxTwitter 快车道与update
生效,但从不作用于 nitter 传输——后者需用--proxy或配置proxy。此前帮助文本暗示它们
对所有路径都有效。(d9629ae)
修复
nitter update --check在大型发布页上失败:响应上限原为 1 MiB,因此发布列表携带
assets[]的仓库(github.com/cli/cli 单页约 4.7 MB)会报
decode response: unexpected EOF。现上限为 32 MiB——仍有界,但真实页面不再触及。
(eb924c8)- Windows 上
update的安装来源判定:可执行文件路径被规范化(符号链接与 8.3 短名),
而GOBIN/GOPATH条目仍按原样比较,导致go install装出的二进制可能被误判为归档安装,
从而被自替换覆盖。现两侧统一规范化。
(0abcfce)
Full Changelog: v0.7.0...v0.7.1
nitter-cli v0.7.0
v0.7.0 — 2026-09-23
FxTwitter fast lane, discovery-oriented commands, and the fixes found while testing them against a self-hosted Nitter instance.
Added
- FxTwitter API v2 hybrid fetch engine:
fetch_backendsetting (mixdefault,nitter,fx;NITTER_FETCH_BACKENDenv override). Timelines and searches try the credential-free Fx fast lane first and fall back to Nitter instances on network error, 429, or SafeSearch 404. Thirteen scalar config keys now. - Following list command (
nitter following): fetch the account profiles followed by any handle (human table on a TTY, NDJSONkind: "profile"in pipe mode). - Comments and conversation tree command (
nitter comments): fetch the thread context and user replies for a status (sorted bylikesorrecency) — the fastest route to an author's self-replies with hidden links, or to a serialized thread. - Curated creator circles (
nitter circle): manage and stream private rosters in~/.nitter-cli/circles.toml(list,show,add,run), distinct from residentwatchpolling. nitter circle suggest: read-only candidate discovery that merges a handle's following list (static) with the authors of the retweets in its timeline (behavioral), ranking candidates by co-occurrence then follower count; human output is a stats header, a ranked table (@handle\tfollowers\tbio\tsource) and a--min-followers-filteredtop matchessummary, with--jsonfor{handle, followers_count, bio, source}arrays.--limitcaps each lane and must be ≥ 1 (0 is a usage error, since the two lanes give 0 opposite, useless meanings); a missing seed exits 1, a single lane failure degrades with a stderr warning, andsuggestnever writes the circle file.nitter circle run --media-type: keep only tweets carrying at least one media entry of the given type (image|video|gif) when traversing a circle — flag parity with theusercommand; an invalid value is a usage error (exit 2) before any network.nitter circle show --min-followers: filter circle members by follower count (--min-followers Nkeeps only members with ≥ N followers, printing@<handle>\t<followers>per row, or JSON{handle, followers_count}objects with--json); a failed member profile is skipped with a stderr warning while others continue, all failing exits 1, and a negative N is a usage error (exit 2) before any network.nitter user --with-replies: include the user's reply tweets in the timeline.- Trends command (
nitter trends): fetch real-time trending topics with ranks, names, contexts, and tweet counts (formatted table on a TTY,kind: "trend"NDJSON in pipe mode). - Quote tweets command (
nitter quotes): fetch quote tweets and derivative creations for a status (supports--media-onlyand--no-reposts, emittingkind: "tweet"NDJSON in pipe mode). - Profile card command (
nitter profile): fetch a creator's profile card with bio, counts, and media URLs (kind: "profile"NDJSON in pipe mode). - User search (
nitter search --type user): search creators, artists, and profiles by keywords or bio. - Fast-lane dispatch for
nitter get:getconnects through FxTwitter first inmixandfxmodes, falling back to Nitter instances. - SDK model expansions: added
Profile,ConversationandTrendmodels and theKindTrendprotocol constant tosdk. - Documentation and agent infrastructure: bilingual
CONTRIBUTINGguides, a pull request template, agent collaboration rules underdocs/maintainers/agents/, and repository-local workflow skills under.agents/skills/(PR, CI, review, docs, commit-message, release-notes).
Changed
circle rundeterministic results and filter provenance: Fx fast-lane results are sorted by tweet ID descending before--limittruncates (same input, same output — upstream page-composition fluctuations no longer change the result set); NDJSON envelopes carrymeta.filter("media_only"or the media-type value) when a media filter is in effect; snapshot semantics and the doubled media-endpoint pagination under--media-onlyare documented in the help text and CLI reference.--instanceexplicitly forces Nitter; List subscriptions remain strictly isolated to Nitter.
Deprecated
Removed
vxandsyndicationmedia strategies: removed from themedia/downloadresolve chain (both verified dead on two environments — vx always 403 challenge_required, syndication empty/not_found).--strategy autois nowfx → nitter → xdown; explicitvx/syndicationare usage errors (exit 2).
Fixed
- watch silently fetched nothing under the fx backend: the user/tag/list source fetches passed
limit 0(= all) and the Fx fast lane treatscount <= 0as ZERO tweets with a nil error — every cycle recorded an empty baseline (seen=0) and emitted nothing. Source fetches now send a positive all-tweets sentinel (nitter semantics unchanged; the Fx client's eager allocation is clamped so an unbounded count no longer reserves gigabytes). - Nitter user-less refs 404ed (
get, andmedia/downloadwith--strategy nitter): a bare numeric status ID resolves to a user-less reference, and the instance was asked for its/status/<id>route — the deployed Nitter answers 404 there, so those runs failed withnot_found(the auto chain reportedall media strategies failed). User-less refs now use/i/status/<id>, the same routeStatusRef.Stringrenders and the one Nitter actually serves. - Nitter-strategy downloads got a polluted file extension: the nitter media link wraps the real twimg URL inside its own path (
/video/<token>/<percent-encoded URL>);url.Parsedecodes that path, so the inner URL's query (?tag=29) landed in it and the extension came out as.mp4?tag=29— files landed as<id>-1.mp4_tag=29. The path is now cut at the first?/#and only a plausible extension (1–8 alphanumerics) is accepted, otherwise the Content-Type decides. - fxtwitter 404 with empty results: quotes and user search now yield an empty slice instead of a failure when the endpoint answers 404 with no results.
Security
v0.7.0 — 2026-09-23
FxTwitter 快车道、面向发现的命令族,以及在自建 Nitter 实例实测中修复的问题。
新增
- FxTwitter API v2 混合抓取引擎:
fetch_backend策略(mix默认 /nitter/fx,支持环境变量NITTER_FETCH_BACKEND)。时间线与搜索默认优先走 Fx 免登快车道,遇网络异常、429 或 SafeSearch 404 平滑回退自建 Nitter 实例。标量配置键扩充为 13 个。 - 博主关注列表命令(
nitter following):拉取任意博主的关注账号画像(TTY 为人类表格,管道模式输出kind: "profile"NDJSON 信封)。 - 推文评论区与对话链命令(
nitter comments):拉取某条推文的上下文 thread 与评论区(支持按likes或recency排序)——提取博主自评隐藏链接、追更连环长推的最快路径。 - 私人精选圈子(
nitter circle):在~/.nitter-cli/circles.toml维护并流式拉取私人花名册(list、show、add、run),与常驻调度型的watch各司其职。 nitter circle suggest:只读的圈子候选发现,聚合某博主的关注列表(静态)与时间线中被转推的原作者(行为),按同现次数、再按粉丝数排序;人类输出为统计行、排序主表(@handle\t粉丝数\tbio\t来源)与--min-followers筛选后的top matches小结,--json输出{handle, followers_count, bio, source}数组。--limit限制每路取数且必须 ≥ 1(0 为用法错误,因两路对 0 的语义相反且无用);种子不存在退出 1,单路失败 stderr 警告降级,suggest从不写圈子文件。nitter circle run --media-type:遍历圈子时按媒体类型过滤(image|video|gif,只保留携带至少一个该类型 media 的推文)——与user命令的 flag 对齐;非法值为用法错误(退出 2),先于任何网络。nitter circle show --min-followers:按粉丝数筛选圈子成员(--min-followers N只显示粉丝数 ≥ N 的成员,每行输出@<handle>\t<粉丝数>,与--json组合时输出{handle, followers_count}对象数组);单个成员 profile 拉取失败不硬失败——stderr warning 并跳过,全部失败退出 1,N 为负数是用法错误(退出 2),先于任何网络。nitter user --with-replies:支持在时间线中包含用户自身发布的回复推文。- 实时热搜趋势命令(
nitter trends):获取实时热门话题榜单(含排名、话题名、上下文分类与发推数;TTY 格式化表格,管道模式输出kind: "trend"NDJSON 信封)。 - 推文引用挖掘命令(
nitter quotes):挖掘单条推文的二次创作与带图引用(支持--media-only、--no-reposts过滤,管道模式输出kind: "tweet"NDJSON 信封)。 - 博主名片卡命令(
nitter profile):获取博主完整个人主页资料卡(含 Handle、名称、Bio、关注/粉丝/推文/媒体计数及头像横幅直链;管道输出kind: "profile"NDJSON 信封)。 - 推主与创作者搜索(
nitter search --type user):支持通过--type user按关键词或 bio 搜索推主、画师及创作者账号画像。 - 单推抓取(
nitter get)接入 Fx 快道:在mix与fx模式下优先走 FxTwitter 极速通道,遇故障平滑回退 Nitter 实例。 - SDK 模型扩充:
sdk包新增Profile、Conversation、Trend标准模型与KindTrend协议常量。 - 文档与 agent 基建:双语
CONTRIBUTING贡献指南、Pull Request 模板、docs/maintainers/agents/下的协作细则,以及.agents/skills/下的仓库本地流程 skill(PR、CI、review、docs、commit-message、release-notes)。
变更
circle run确定性结果与过滤溯源:Fx 快车道结果按推文 ID 降序排序后再按--limit截断(同输入同输出——上游翻页组成波动不再改变结果集);媒体过滤生效时 NDJSON 信封携带meta.filter("media_only"或媒体类型值);快照语义与--media-only下媒体端点翻页加深的补偿行为已写入帮助文本与 CLI 参考。- 指定
--instance时自动强制走 Nitter 实例,List 订阅严格物理隔离锁定自建 Nitter。
弃用
移除
vx与syndication媒体策略:从media/download解析链中移除(双环境实测均不可用——vx 恒 403 challenge_required,syndication empty/not_found)。--strategy auto链路改为fx → nitter → xdown;显式指定vx/syndication为用法错误(退出 2)。
修复
- watch 在 fx 后端下静默拉到 0 条:user/tag/list 源取数传
limit 0(意为 all),而 Fx 快车道把count <= 0当成 0 条且不报错——每个 cycle 都静默记成空基线(seen=0)、不发推。源取数改为发送正数的 all 哨兵值(nitter 后端语义不变;Fx 客户端的提前分配已钳制,无界 count 不再预留 GB 级内存)。 - Nitter 无 user 段的引用 404(
get,以及media/download的--strategy nitter):裸数字状态 ID 解析为无 user 段的引用,而实例被请求的是/status/<id>路由——部署的 Nitter 对该路由返回 404,导致这些运行以not_found失败(auto 链报all media strategies failed)。无 user 段引用现改用/i/status/<id>,与StatusRef.String渲染的路由一致,也是 Nitter 实际提供的路由。 - Nitter 策略下载的文件名扩展名被污染:nitter 媒体链接把真实 twimg URL 包裹在自身路径里(
/video/<token>/<percent-encoded URL>);url.Parse会解码该路径,内层 URL 的查询(?tag=29)因此落入其中,扩展名被算成.mp4?tag=29——文件落盘为<id>-1.mp4_tag=29。现改为在首个?/#处截断路径,且只接受形如 1–8 个字母数字的合理扩展名,否则由 Content-Type 决定。 - fxtwitter 404 且结果为空:quotes 与用户搜索在这类响应下改为返回空切片,而不是报错。
安全
Full Changelog: v0.6.1...v0.7.0
nitter-cli v0.6.1
v0.6.1 — 2026-09-13
Documentation and agent-guidance release: no binary behavior changes.
Added
- Agent deployment guidance: a new skill reference
(skills/nitter-cli/references/deploy.md) covering the ask-first flow —
an existing instance is found by its deployment traces and verified with
instances testbefore any config edit; when the user has none, the agent
offers a Docker deployment and proceeds only on explicit consent — plus
the default Docker
Compose deployment of Nitter bound to127.0.0.1:8080(the upstream
compose file, the one-lineredisHostchange, and the required
real-accountsessions.jsonlwith burner-account and credential-handling
guidance), and the operational notes (same-machine binding, SSH-tunnel /
reverse-proxy bridging for remote CLIs, the account-ban and cease-and-desist
risk disclosure). The README quick start links the upstream wiki and the
community self-hosting guide for readers without an agent.
Fixed
- Release-notes hygiene: versioned changelog files no longer carry the
Unreleaseddrafting header, and the changelog index table lists the
released versions. GitHub Release bodies now carry the bilingual notes
(English first, Simplified Chinese second) as this index has always
claimed; the bodies of the two previous releases were backfilled
accordingly.
v0.6.1 — 2026-09-13
文档与 agent 指引版本:无任何二进制行为变更。
新增
- agent 部署指引:新增 skill 参考(
skills/nitter-cli/references/deploy.md),覆盖先问后动的流程——已有实例:按部署痕迹查找,并以instances test验证后才写入配置;没有实例:经用户明确同意后提供 Docker 部署——以及默认绑定127.0.0.1:8080的 Nitter Docker Compose 部署(上游 compose 文件、redisHost一行改动、以及必需的真实账号sessions.jsonl,含小号建议与凭证处理纪律),与运维注意(同机绑定、远程 CLI 的 SSH 隧道/反向代理桥接、账号封禁与停止函风险告知)。README 快速上手为无 agent 的读者链至上游 wiki 与社区自建指南。
修复
- 发布说明卫生:版本化 changelog 文件不再携带「未发布」草稿区标题,changelog 索引表补齐已发布版本行。GitHub Release 正文按本索引一贯的声明改为携带双语说明(英文在前、简体中文在后),此前两个版本的正文已同步补齐。
Full Changelog: v0.6.0...v0.6.1
nitter-cli v0.6.0
v0.6.0 — 2026-09-13
Added
nitter downloadnaming templates: thefilename_templateconfig key (default{id}-{seq}, byte-identical to the previous behavior) anddirectory_template(default empty = flat) name and place downloaded files via the placeholders{id},{seq},{user},{kind},{ext};--filename-templateoverrides the filename template per invocation. Covers always land as<id>-cover.<ext>(the template governs regular files only), rendered names are sanitized (Windows-illegal characters become_), a rendered-name collision within one ref gets a-2,-3, … suffix, and an invalid template warns once on stderr and falls back to the default/flat instead of failing (pixiv semantics). The config command now manages twelve scalar keys.seen list/seen cleargain--state-dir DIR: both subcommands can now operate on awatch --state-dirdirectory instead of only the default~/.nitter-cli/statelocation (the documented asymmetry is gone; reads and clears create nothing — a missing directory is simply the empty store).watch --once --json: prints one JSON document{"tweets":[...bare Tweet objects...],"errors":[{"ref","code","message"}...]}for the single cycle — selected tweets plus one entry per failed source (SDK error kind ascode; the run still exits 1 when a source failed).--jsonwithout--onceremains a usage error (exit 2): the resident loop is a stream of cycles —--ndjsonstays the envelope stream.watch --max-new-overflow keep|drop(defaultdrop, the previous silent-loss behavior):keepleaves tweets beyond the--max-newcap unseen so the next cycles re-emit them under the same cap (宁重勿丢 — a burst larger than twice the cap drains over several cycles);keeptogether with--max-new 0still seals the current first page as the baseline. Any other value is a usage error (exit 2).
Changed
- Instance basic authentication: an
[[instances]]entry with BOTHusernameandpasswordnow authenticates requests to that instance (HTTP basic auth, host-scoped inside the transport). Credentials can only ever ride requests addressed to their own instance — the third-party media endpoints never see them — and they never enter errors, logs, or responses; an incomplete pair is treated as unconfigured. A one-off--instance URLoverride is a plain URL and carries no credentials (documented limitation). - Data commands default to NDJSON when stdout is a pipe:
user,search,list,get,media,downloadandinstances testnow emitnitter.pipeline/v1envelopes when stdout is not a TTY and no explicit--json/--ndjsonis given, sonitter search "..." | nitter downloadworks without flags. Explicit flags win; on a TTY the default stays the human table; an empty result in a pipe prints nothing (no(empty)hint).watchkeeps its text default in pipes (pass--ndjsonfor the envelope stream);config,seenandupdateare unchanged. user --max-pages 0now means UNBOUNDED HTML pagination: the HTML fallback follows the load-more cursor chain until upstream exhaustion (runaway runs are bounded by context cancellation); the RSS feed is single-page and unaffected. The omitted flag still applies the configmax_pages/ built-in default of 5, andsearch/listkeep the old "0 = default" semantics.
Deprecated
Removed
Fixed
Security
v0.6.0 — 2026-09-13
新增
nitter download命名模板:filename_template配置键(默认{id}-{seq},与既有行为逐字节一致)与directory_template(默认空 = 平铺)通过占位符{id}、{seq}、{user}、{kind}、{ext}命名并放置下载文件;--filename-template单次覆盖文件名模板。封面始终落盘为<id>-cover.<ext>(模板只作用于普通文件),渲染名做安全清洗(Windows 非法字符替换为_),同一 ref 内的渲染名碰撞获得-2、-3… 后缀,非法模板以一条 stderr 警告回退默认/平铺而不使运行失败(pixiv 语义)。config 命令现在管理十二个标量键。seen list/seen clear新增--state-dir DIR:两个子命令现在可以作用于watch --state-dir的目录,而不只是默认的~/.nitter-cli/state(原先记录的不对称已消除;读取与清除不创建任何东西——不存在的目录就是空库)。watch --once --json:为单轮打印一个 JSON 文档{"tweets":[...裸 Tweet 对象...],"errors":[{"ref","code","message"}...]}——选出的推文外加每个失败源一条记录(code为 SDK 错误 Kind;有源失败仍退出 1)。不带--once的--json仍是用法错误(退出 2):常驻循环是逐轮的流——信封流仍用--ndjson。watch --max-new-overflow keep|drop(默认drop,即此前的静默丢失行为):keep让超出--max-new上限的新推文保持未标记,由后续各轮在同一上限下重新推送(宁重勿丢——突发量超过两倍上限时需多轮才能排空);keep搭配--max-new 0仍将当前首页封存为新基准。其他取值是用法错误(退出 2)。
变更
- 实例 basic 认证:
[[instances]]条目同时设置username与password时,发往该实例的请求现在会携带 HTTP basic 认证(在传输层内按主机限定)。凭证只会附着在发往其所属实例的请求上——第三方媒体端点永远看不到它——也不会进入错误、日志或响应;只设置一半的凭证对视为未配置。单次的--instance URL覆盖是纯 URL,不携带凭证(已记录的局限)。 - 数据命令在 stdout 为管道时默认输出 NDJSON:
user、search、list、get、media、download与instances test在 stdout 非 TTY 且未显式给出--json/--ndjson时,现在输出nitter.pipeline/v1信封,nitter search "..." | nitter download无需任何 flag 即可直连。显式 flag 永远优先;TTY 下默认仍是人类表格;管道下的空结果完全静默(无(empty)提示)。watch在管道下保持文本默认(信封流请传--ndjson);config、seen、update不变。 user --max-pages 0现在表示不限页:HTML 回退路径一直跟随 load-more 游标翻页,直至上游穷尽(失控运行由上下文取消兜底);RSS 源天然单页,不受影响。不传 flag 仍应用配置max_pages/ 内置默认 5,search/list保持旧的「0 = 用默认值」语义。
弃用
移除
修复
安全
Full Changelog: v0.5.0...v0.6.0