Skip to content
프로젝트

소개

VibeLoft Twitter 계정 데이터 세트를 포함한 X.com용 순수 Python 프로토콜 도구 및 연구 노트

생산성 및 자동화

이 수치를 측정하는 방법

What you can do

  • Read tweet details through TweetDetail.
  • Resolve user profiles through UserByScreenName.
  • Collect user timelines through UserTweets.
  • Collect search results through SearchTimeline, including date-window pagination for deeper history.

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
-2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

x-kit

Pure-Python protocol tools and research notes for the X.com web client.

This repository now uses the Python protocol implementation as the source of truth. The previous Bun/TypeScript automation has been removed; selected full-user tweet exports are preserved under data/user_tweets/.

Capabilities

  • Read tweet details through TweetDetail.
  • Resolve user profiles through UserByScreenName.
  • Collect user timelines through UserTweets.
  • Collect search results through SearchTimeline, including date-window pagination for deeper history.
  • Create tweets with optional media upload.
  • Retweet, quote tweet, or copy public tweet text/media into a new tweet.
  • Automatically inject x-client-transaction-id for /i/api/ requests.

Setup

uv sync
cp config/settings.example.json config/settings.json

Edit config/settings.json and fill:

  • auth.auth_token
  • auth.ct0

Both values come from an authenticated browser session on x.com. config/settings.json is ignored by Git.

You can also pass credentials at runtime:

uv run user.py HiTw93 --auth-token "$AUTH_TOKEN" --ct0 "$CT0"

Commands

# User profile
uv run user.py HiTw93

# Recent user tweets
uv run user_tweets.py HiTw93 --pages 3 -o tweets.json

# Fuller history via search date windows
uv run search.py --from HiTw93 --all -o hitw93_full.json

# Tweet detail
uv run read.py https://x.com/i/status/2062521510938779729

# Create a text tweet
uv run tweet.py "hello world"

# Create a tweet with media
uv run tweet.py "hello with image" --image ./photo.png

# Retweet or quote
uv run repost.py --retweet https://x.com/user/status/123
uv run repost.py https://x.com/user/status/123 -t "comment"

# Collect public Twitter/X accounts recorded by VibeLoft
uv run collect_vibeloft_twitter_accounts.py

# Collect Twitter/X-side post and follower counts for those accounts
uv run collect_twitter_profile_stats.py

# Sequentially collect all VibeLoft Twitter/X timelines; pauses on X rate limits
uv run python scripts/collect_vibeloft_twitter_sequence.py

# Inspect the latest per-user collection status
uv run python scripts/twitter_collection_status.py chunxiangai
uv run python scripts/twitter_collection_status.py

Notes

  • ANALYSIS.md records the reverse-engineering findings and current GraphQL operation IDs.
  • data/user_tweets/ contains selected full-user tweet exports collected before the Python migration.
  • data/vibeloft_twitter_accounts.json records public VibeLoft profiles that expose Twitter/X links.
  • data/vibeloft_twitter_x_stats.json records Twitter/X-side post and follower counts for the VibeLoft Twitter cohort.
  • data/user_tweets/latest_collection_status.json records each collected VibeLoft Twitter user's latest collection time, newest tweet time, oldest tweet time, tweet count, output file, and failure/pause status.
  • data/user_tweets/sequence_state.json records the sequential collection cursor. If X returns a rate limit, the sequence pauses and resumes from the same user after the reset window.
  • data/user_tweets/vibeloft/ stores per-user timeline exports collected by the sequential task.
  • Query IDs and feature flags are deployment artifacts. Refresh them if X.com changes its web bundle.
  • Write operations can trigger account-level limits and risk controls. Use deliberate delays and avoid automation bursts.
  • Do not commit cookies, captured private payloads, or personal datasets.

관련 프로젝트 살펴보기

불러오는 중…