sync: update from private repo (7d64ee2)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-05 05:42:11 +00:00
parent c526adddc2
commit 02c7dfdd83
16 changed files with 205 additions and 35 deletions
+18 -1
View File
@@ -1,4 +1,4 @@
# X / Twitter ツール(XSearch / XUserPosts / XPostDetail / XFetchCardMedia
# X / Twitter ツール(XSearch / XUserPosts / XPostDetail / XTimeline / XFetchCardMedia
twitter-cli を内部で呼び出して X (旧 Twitter) のデータを取得する read-only ツール群。
@@ -37,6 +37,23 @@ XUserPosts({
})
```
## XTimeline — ホームタイムライン(ログイン中アカウント)
```js
XTimeline({
tab: "for_you", // for_you (デフォルト) / following
limit: 20, // デフォルト 20, 最大 50
full_text: true,
compact: false,
output_path: "x/timeline.txt" // 任意
})
```
設定済みの `auth_token` / `ct0` cookie に紐づくアカウントの**ホームタイムライン**を返す。
`tab: "for_you"`(おすすめ)と `tab: "following"`(フォロー中)を切り替えられる。
内部的には `twitter feed [-t following]` を呼ぶ。検索ではなく「ログイン中ユーザーが
普段見るフィード」を取得したいときに使う。出力・メディア DL の扱いは XSearch と共通。
## XPostDetail — 投稿の詳細+リプライ
```js