Skip to content

Releases

nitter-cli v0.9.1

Choose a tag to compare

@github-actions github-actions released this 25 Oct 05:25
55ebf59

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 set manage 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 get succeed 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

Choose a tag to compare

@github-actions github-actions released this 29 Sep 11:05
259bff5

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 (default 168h; 0s removes everything) and prunes the subdirectories it emptied. It never downloads, never reads stdin, and never creates directories. Guardrails refuse root directories (/, drive roots such as C:\, 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

Choose a tag to compare

@github-actions github-actions released this 26 Sep 04:17
f84e65e

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 of following — 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 N caps the number of profiles
    (default 20, must be >= 1); --json/--ndjson follow the shared output modes. The route always queries
    api.fxtwitter.com regardless of fetch_backend; --instance does 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 to get); a status that is not part
    of a thread answers not_found (exit 1). The route always queries api.fxtwitter.com; --instance does
    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 — use search for real queries. --limit N caps what is printed (default 20, must be

    = 1; the upstream may answer fewer). The route always queries api.fxtwitter.com; --instance does not
    apply.
    (#14)

  • nitter circle remove <NAME> <HANDLE>: removes a handle from a circle, editing only the circle's
    users array in circles.toml. The profile sidecar (~/.nitter-cli/profiles.toml, recorded role/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 explicit not a member; nothing changed notice on
    stderr and exits 0.
    (#14)

Changed

  • circle add now fetches the new member's profile facts: after the roster write succeeds and a new
    member was actually inserted, the added handle is sent to api.fxtwitter.com for a best-effort profile
    fetch whose fact fields (name, bio, followers_count, fetched_at) are merged into the sidecar, so
    circle show can render a fresh member without waiting for circle 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, FetchUserFollowing and FetchQuotes now
    reject an empty query/handle and a non-positive count/limit with invalid_argument instead 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 < 1 with
    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 Windows ReplaceFileW is 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 update as the supported
    upgrade path
    : the Skill no longer calls update an 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 add writes the roster back under the matched section key: a circle whose inner key
    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)
  • mix no longer replaces the fast lane's failure reason with no 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, and fetch_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

Choose a tag to compare

@github-actions github-actions released this 24 Sep 11:15
1e86397

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: search gains a result-ordering flag — latest (default, the
    newest-first feed, byte-identical to the previous request) or top (the popular-results feed). The
    ordering is handed to BOTH backends (Nitter's f= parameter and FxTwitter's feed) 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 --sort with --type user
    exits 2 as well (profile search has no ordering). Note that comments --sort likes|recency is a different
    domain: neither value set is valid for the other command.
    (#6)

Changed

  • --limit and --max-pages have no "unlimited" value: both are caps and must be >= 1 when given; 0
    and negative values are usage errors (exit 2). 0 used to mean "all" for --limit and "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_limit and max_pages config keys follow the same rule (both >= 1; retry_attempts still
    accepts 0). Migration: replace --limit 0 with an explicit cap, and --max-pages 0 with a large
    page budget; for a deep backlog state both. The removed user --max-pages 0 also drops the
    "paginate until upstream exhaustion" escape hatch. Prefer the per-call flags over raising the global
    max_pages: watch (per cycle) and circle run (per member) read that same key, and search ignores
    --max-pages on the FxTwitter lane, whose endpoint is fetched in a single request.
    (f768b5e)
  • trends --limit now defaults to 20 (it was 0, i.e. every trend the endpoint returned). Pass a
    larger value to see more.
    (f768b5e)
  • fetch_backend has only mix and fx: the nitter value was removed. Its meaning — instances only,
    never the fast lane — has no equivalent among the two remaining modes, and quietly mapping it onto mix
    would add the fast lane the setting used to exclude, so it is now rejected with a message naming mix.
    To pin one invocation to your own instances, pass --instance URL; that flag also remains the way to
    exercise a single instance. Migration: replace fetch_backend = "nitter" with fetch_backend = "mix"
    (or "fx"), and use --instance URL where you want the instance path for a single call.
    (f768b5e)
  • fetch_backend = fx no longer falls back to Nitter for get: that fallback replaced the real Fx error
    with no instances configured whenever no instance was configured, hiding the cause. Under fx the fast
    lane is the only permitted source and its error surfaces as it is; mix keeps its fallback unchanged.
    (f768b5e)
  • --instance is 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 nitter value of fetch_backend — see the Changed entry above for the migration.
    (f768b5e)
  • user --max-pages 0 as the spelling for "no page cap".
    (f768b5e)

Fixed

  • user --limit 0 and circle run --limit 0 no longer return an empty result on the FxTwitter lane: the
    lane treated count <= 0 as "zero tweets" and answered with an empty success, so a documented "fetch
    everything" silently produced nothing — and mix accepted 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 0 no longer silently overrides the configured max_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, media and download: 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, so nitter get <REF> (or media/download with
    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)
  • quotes and search --type user no 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 as not_found
    (exit 1). quotes cross-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 user treats 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 upstream message field. Errors now name the route only, as the
    sdk redaction contract requires.
    (f768b5e)
  • user --help no longer describes the RSS layer as single-page: it claimed the RSS feed is one page and
    that --max-pages only capped the HTML fallback. The feed is read page by page along its Min-Id cursor and
    each layer counts its own --max-pages budget, so the help text contradicted the implementation and every
    document that describes the scan; a bounded fetch also stops before the next page once --limit is
    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
    update only), gave ints >= 0 as the config set value range (only retry_attempts accepts 0;
    default_limit/max_pages require >= 1), described following --limit as capping pages rather than
    profiles, and both CLI references now state that watch initializes an empty first user: 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 也仍是验证单...
Read more

nitter-cli v0.7.3

Choose a tag to compare

@github-actions github-actions released this 23 Sep 17:23
14ca0d6

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-dir per subscription category: watch dedup state is keyed
    by source key inside one seen.json, so two categories watching the same account shared the key user:HANDLE
    — the category whose cycle ran first marked the tweet seen and the other one dropped it silently (no error,
    --once still 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 copied nitter get
    / nitter media / nitter download line fetched something other than the NASA status the surrounding text
    claimed. Every example now uses a real NASA status.
    (#4)

Fixed

  • profile, following and search --type user report the real tweet count: tweets_count was always 0
    because the FxTwitter profile and author objects carry the count under statuses, a key the decoder never read
    (it only mapped the legacy tweets_count/statuses_count spellings). The decoder now reads statuses first,
    so the Tweets: line of the profile card and the tweets_count field of every profile envelope 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

Choose a tag to compare

@github-actions github-actions released this 23 Sep 14:15

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-reposts and two or more user: 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 list and
    seen clear reported 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 now seen.Load: … (and seen.Save: …
    on the write path). Kinds, exit codes and the state-file semantics are unchanged.
    (cf050f5)
  • The documented mix fetch routing matches measured behavior: the FAQ listed comments, following,
    profile, quotes, trends and search --type user among the commands that fall back to your own instances
    on failure, and described nitter mode as keeping every fetch self-hosted. Those six commands have no Nitter
    equivalent and always reach api.fxtwitter.com, and fetch_backend only routes the timeline and status
    surfaces. The text now states that split. (b526158)

Fixed

  • The Nitter RSS scan follows the Min-Id cursor instead of reading one page: a timeline whose backlog spanned
    more than one feed page was silently truncated — --max-new above 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-pages budget is spent, or a page adds nothing the source has not already seen.
    (564bf1b)
  • nitter download reports a local disk failure as a local failure: a failed write to the target file — a full
    disk, most often — surfaced as upstream_unavailable and sent the caller looking at the instance. It is now the
    local_state_error every 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

Choose a tag to compare

@github-actions github-actions released this 23 Sep 05:12

v0.7.1 — 2026-09-23

Self-updating installs, cached circle profiles, and the fixes found while verifying both.

Added

  • nitter update installs releases: after showing the version comparison it asks for confirmation
    (--confirm skips 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's checksums.txt, checks the staged binary's reported version, and only then replaces
    the executable — any verification failure leaves the existing installation untouched. A go install
    installation is refused with the matching go install line rather than replaced, so a later install cannot
    silently undo the update. On Windows the previous binary is kept as <name>.exe.old and removed by the next
    invocation; on Unix the rename is atomic and leaves nothing behind. update --check remains 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 update no longer only prints guidance: without --check it performs the check and then offers to
    install. --proxy/config.proxy now apply to update traffic, and when both are empty the command honors
    HTTPS_PROXY/ALL_PROXY.
  • nitter download reports its output directory: one note: writing to <dir> line on stderr carrying the
    resolved absolute path, printed after the directory is created and before any file is written. stdout,
    --json and --ndjson are unaffected. (7b5080a)
  • nitter circle show is now local-only: it joins circles.toml against the cached sidecar and performs
    zero network requests, so --min-followers now 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; --json rows gain name, bio, fetched_at, role and note. Run
    nitter circle refresh <NAME> once to populate the cache.
    (08ad3a6)
  • Proxy documentation matches measured behavior: the environment variables HTTPS_PROXY/ALL_PROXY apply
    to the FxTwitter fast lane and to update, but never to the nitter transport, which needs --proxy or
    config proxy. The help text previously implied they applied everywhere.
    (d9629ae)

Fixed

  • nitter update --check on 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)
  • update install-source detection on Windows: the executable path was resolved (symlinks and 8.3 short
    names) while the GOBIN/GOPATH entry was compared verbatim, so a go install binary 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

Choose a tag to compare

@github-actions github-actions released this 22 Sep 16:33
f9a79b5

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_backend setting (mix default, nitter, fx; NITTER_FETCH_BACKEND env 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, NDJSON kind: "profile" in pipe mode).
  • Comments and conversation tree command (nitter comments): fetch the thread context and user replies for a status (sorted by likes or recency) — 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 resident watch polling.
  • 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-filtered top matches summary, with --json for {handle, followers_count, bio, source} arrays. --limit caps 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, and suggest never 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 the user command; 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 N keeps 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-only and --no-reposts, emitting kind: "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: get connects through FxTwitter first in mix and fx modes, falling back to Nitter instances.
  • SDK model expansions: added Profile, Conversation and Trend models and the KindTrend protocol constant to sdk.
  • Documentation and agent infrastructure: bilingual CONTRIBUTING guides, a pull request template, agent collaboration rules under docs/maintainers/agents/, and repository-local workflow skills under .agents/skills/ (PR, CI, review, docs, commit-message, release-notes).

Changed

  • circle run deterministic results and filter provenance: Fx fast-lane results are sorted by tweet ID descending before --limit truncates (same input, same output — upstream page-composition fluctuations no longer change the result set); NDJSON envelopes carry meta.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-only are documented in the help text and CLI reference.
  • --instance explicitly forces Nitter; List subscriptions remain strictly isolated to Nitter.

Deprecated

Removed

  • vx and syndication media strategies: removed from the media/download resolve chain (both verified dead on two environments — vx always 403 challenge_required, syndication empty/not_found). --strategy auto is now fx → nitter → xdown; explicit vx/syndication are 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 treats count <= 0 as 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, and media/download with --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 with not_found (the auto chain reported all media strategies failed). User-less refs now use /i/status/<id>, the same route StatusRef.String renders 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.Parse decodes 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

Choose a tag to compare

@github-actions github-actions released this 13 Sep 13:02

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 test before 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 to 127.0.0.1:8080 (the upstream
    compose file, the one-line redisHost change, and the required
    real-account sessions.jsonl with 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
    Unreleased drafting 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

Choose a tag to compare

@github-actions github-actions released this 13 Sep 11:14

v0.6.0 — 2026-09-13

Added

  • nitter download naming templates: the filename_template config key (default {id}-{seq}, byte-identical to the previous behavior) and directory_template (default empty = flat) name and place downloaded files via the placeholders {id}, {seq}, {user}, {kind}, {ext}; --filename-template overrides 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 clear gain --state-dir DIR: both subcommands can now operate on a watch --state-dir directory instead of only the default ~/.nitter-cli/state location (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 as code; the run still exits 1 when a source failed). --json without --once remains a usage error (exit 2): the resident loop is a stream of cycles — --ndjson stays the envelope stream.
  • watch --max-new-overflow keep|drop (default drop, the previous silent-loss behavior): keep leaves tweets beyond the --max-new cap unseen so the next cycles re-emit them under the same cap (宁重勿丢 — a burst larger than twice the cap drains over several cycles); keep together with --max-new 0 still 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 BOTH username and password now 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 URL override 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, download and instances test now emit nitter.pipeline/v1 envelopes when stdout is not a TTY and no explicit --json/--ndjson is given, so nitter search "..." | nitter download works 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). watch keeps its text default in pipes (pass --ndjson for the envelope stream); config, seen and update are unchanged.
  • user --max-pages 0 now 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 config max_pages / built-in default of 5, and search/list keep 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