This commit is contained in:
+18
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user