From 7956158d9b6ec3f5158d2ab899abd9eb82de80bf Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 8 May 2026 17:11:10 +0200 Subject: [PATCH] Polish public-facing docs --- README.md | 8 ++++---- skill/SKILL.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0de999d..506fd4b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A terminal-first CLI for Twitter/X: read timelines, bookmarks, and user profiles without API keys. -> **Fork note:** This repository is a private fork of [`public-clis/twitter-cli`](https://github.com/public-clis/twitter-cli) with extra cookies.txt auth support, multi-account usage via per-command `TWITTER_COOKIE_FILE=...`, and a repo-local OpenClaw skill. +> **Fork note:** This repository is a fork of [`public-clis/twitter-cli`](https://github.com/public-clis/twitter-cli) with added Netscape `cookies.txt` auth support, multi-account usage via per-command `TWITTER_COOKIE_FILE=...`, and a repo-local OpenClaw skill. ## More Tools @@ -197,9 +197,9 @@ This keeps the CLI multi-account friendly: no cookie path is pinned in config, s Examples: ```bash -TWITTER_COOKIE_FILE=/root/twitter_cookies/space.txt twitter whoami --json -TWITTER_COOKIE_FILE=/root/twitter_cookies/betternews.txt twitter whoami --json -TWITTER_COOKIE_FILE=/root/twitter_cookies/bundesamt.txt twitter whoami --json +TWITTER_COOKIE_FILE=/path/to/account-a.cookies.txt twitter whoami --json +TWITTER_COOKIE_FILE=/path/to/account-b.cookies.txt twitter whoami --json +TWITTER_COOKIE_FILE=/path/to/account-c.cookies.txt twitter tweet 1234567890 --json ``` Browser extraction is recommended — it forwards ALL Twitter cookies (not just `auth_token` + `ct0`) and aligns request headers with your local runtime, which is closer to normal browser traffic than minimal cookie auth. diff --git a/skill/SKILL.md b/skill/SKILL.md index 0fc8e92..331cfe5 100644 --- a/skill/SKILL.md +++ b/skill/SKILL.md @@ -5,7 +5,7 @@ description: Use the local twitter-cli fork with cookies.txt authentication for # Twitter CLI (cookie-file, multi-account) -Use the local fork in `/root/projects/twitter-cli`. +Use this repository checkout. ## Rules @@ -17,7 +17,7 @@ Use the local fork in `/root/projects/twitter-cli`. ## Basic pattern ```bash -cd /root/projects/twitter-cli +cd . .venv/bin/activate TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter whoami --json ``` @@ -25,13 +25,13 @@ TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter whoami --json ## Examples ```bash -TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter tweet 2051661976330269086 --json -TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter user Space_Banane --json +TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter tweet 1234567890 --json +TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter user someuser --json TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter post "hello world" ``` ## Notes - The fork already supports Netscape-format `cookies.txt` via `TWITTER_COOKIE_FILE`. -- Repo: `https://gitea.reversed.dev/luna/twitter-cli-cookiefile` +- Repo-local skill path: `skill/SKILL.md` - If auth fails, verify the cookie file still contains fresh `auth_token` and `ct0` values for the target account.