ccxt
TRANSLATED CONTENT: --- name: ccxt description: CCXT cryptocurrency trading library. Use for cryptocurrency exchange APIs, trading, market data, order…
TRANSLATED CONTENT:
$ npx -y skills add 2025emma/vibe-coding-cn --skill twscrape --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/twscrapeContext preview
The summary Claude sees to decide when to auto-load this skill.
TRANSLATED CONTENT:
TRANSLATED CONTENT:
Python library for scraping Twitter/X data using GraphQL API with account rotation and session management.
Use this skill when:
pip install twscrape
import asyncio
from twscrape import API, gather
async def main():
api = API() # Uses accounts.db by default
# Add accounts (with cookies - more stable)
cookies = "abc=12; ct0=xyz"
await api.pool.add_account("user1", "pass1", "email@example.com", "mail_pass", cookies=cookies)
# Or add accounts (with login/password - less stable)
await api.pool.add_account("user2", "pass2", "email2@example.com", "mail_pass2")
await api.pool.login_all()
asyncio.run(main())# Search tweets
await gather(api.search("elon musk", limit=20))
# Get user info
await api.user_by_login("xdevelopers")
user = await api.user_by_id(2244994945)
# Get user tweets
await gather(api.user_tweets(user_id, limit=20))
await gather(api.user_tweets_and_replies(user_id, limit=20))
await gather(api.user_media(user_id, limit=20))
# Get followers/following
await gather(api.followers(user_id, limit=20))
await gather(api.following(user_id, limit=20))
# Tweet operations
await api.tweet_details(tweet_id)
await gather(api.retweeters(tweet_id, limit=20))
await gather(api.tweet_replies(tweet_id, limit=20))
# Trends
await gather(api.trends("news"))# Parallel scraping
async for tweet in api.search("elon musk"):
print(tweet.id, tweet.user.username, tweet.rawContent)Search tweets by query string.
**Parameters:**
**Returns:** AsyncIterator of Tweet objects
**Example:**
# Latest tweets
async for tweet in api.search("elon musk", limit=20):
print(tweet.rawContent)
# Top tweets
await gather(api.search("python", limit=20, kv={"product": "Top"}))Get user information by username.
**Example:**
user = await api.user_by_login("xdevelopers")
print(user.id, user.displayname, user.followersCount)Get user information by user ID.
Get user's followers.
Get users that the user follows.
Get only verified followers.
Get user's Twitter Blue subscriptions.
Get detailed information about a specific tweet.
Get replies to a tweet.
Get users who retweeted a specific tweet.
Get tweets from a user (excludes replies).
Get tweets and replies from a user.
Get tweets with media from a user.
Get tweets from a Twitter list.
Get trending topics by category.
**Categories:** "news", "sport", "entertainment", etc.
**With cookies (recommended):**
cookies = "abc=12; ct0=xyz" # String or JSON format
await api.pool.add_account("user", "pass", "email@example.com", "mail_pass", cookies=cookies)**With credentials:**
await api.pool.add_account("user", "pass", "email@example.com", "mail_pass")
await api.pool.login_all()# Add accounts from file twscrape add_accounts accounts.txt username:password:email:email_password # Login all accounts twscrape login_accounts # Manual email verification twscrape login_accounts --manual # List accounts and status twscrape accounts # Re-login specific accounts twscrape relogin user1 user2 # Retry failed logins twscrape relogin_failed
proxy = "http://login:pass@example.com:8080"
await api.pool.add_account("user", "pass", "email@example.com", "mail_pass", proxy=proxy)api = API(proxy="http://login:pass@example.com:8080")
export TWS_PROXY=socks5://user:pass@127.0.0.1:1080 twscrape search "elon musk"
api.proxy = "socks5://user:pass@127.0.0.1:1080"
doc = await api.user_by_login("elonmusk")
api.proxy = None # Disable proxy**Priority:** `api.proxy` > `TWS_PROXY` env var > account-specific proxy
twscrape search "QUERY" --limit=20 twscrape search "elon musk lang:es" --limit=20 > data.txt twscrape search "python" --limit=20 --raw # Raw API responses
twscrape user_by_logi
一个通过与 AI 结对编程,将想法变为现实的终极工作站 <!-- 徽章区域 (BADGES) --> 本仓库的 AI 解读链接:zread.ai/tukuaiai/vibe-coding-cn
Repo: 2025emma/vibe-coding-cn
TRANSLATED CONTENT: --- name: ccxt description: CCXT cryptocurrency trading library. Use for cryptocurrency exchange APIs, trading, market data, order…
TRANSLATED CONTENT: --- name: claude-code-guide description: Claude Code 高级开发指南 - 全面的中文教程,涵盖工具使用、REPL 环境、开发工作流、MCP 集成、高级模式和最佳实践。适合学习 Claude Code 的高级功能和开发技巧。 ---
TRANSLATED CONTENT: --- name: claude-cookbooks description: Claude AI cookbooks - code examples, tutorials, and best practices for using Claude API. Use when…
TRANSLATED CONTENT: --- name: claude-skills description: "Claude Skills meta-skill: extract domain material (docs/APIs/code/specs) into a reusable Skill…
TRANSLATED CONTENT: --- name: coingecko description: CoinGecko API documentation - cryptocurrency market data API, price feeds, market cap, volume, historical…
TRANSLATED CONTENT: --- name: cryptofeed description: Cryptofeed - Real-time cryptocurrency market data feeds from 40+ exchanges. WebSocket streaming,…