xeepy-python-twitter-guide
БесплатноБез исполняемых скриптовНе проверенGuide to xeepy — a comprehensive Python library for X (Twitter) with 154 files and 44K+ lines of code. Features full API v2 coverage, spaces, communities…
от nirholas★ 289 звёзд на GitHubОб этом скилле
xeepy — Python X/Twitter Library Guide
xeepy is the most comprehensive Python library for X (Twitter) with 154 files and 44,000+ lines of code. Full API v2 coverage, Spaces, Communities, async support, and Grok integration.
Why xeepy?
| Feature | xeepy | tweepy | snscrape |
|---|---|---|---|
| API v2 | ✅ Full | Partial | ❌ |
| Spaces | ✅ | ❌ | ❌ |
| Communities | ✅ | ❌ | ❌ |
| Grok | ✅ | ❌ | ❌ |
| Polls | ✅ | Partial | ❌ |
| Lists | ✅ | Partial | ❌ |
| Async | ✅ | ❌ | ❌ |
| Scraping | ✅ | ❌ | ✅ |
| MCP Server | ✅ | ❌ | ❌ |
Quick Start
pip install xeepy
from xeepy import XClient
client = XClient(
api_key='your-api-key',
api_secret='your-api-secret',
access_token='your-access-token',
access_secret='your-access-secret'
)
Tweets
Post
# Simple tweet
tweet = await client.tweet("Sperax USDs auto-yield is like free money 💰")
# With media
tweet = await client.tweet(
"Check out this chart!",
media=["chart.png"],
alt_text="SPA price chart"
)
# Thread
await client.thread([
"Understanding impermanent loss 🧵",
"1/ IL happens when token prices in your LP change...",
"2/ The greater the divergence, the more IL...",
"3/ Fees can offset IL if the pool is active enough"
])
# Quote tweet
await client.quote(original_tweet_id, "This is huge for DeFi!")
# Reply
await client.reply(tweet_id, "Great point about USDs yield!")
Search
# Basic search
tweets = await client.search("sperax USDs", limit=100)
# Advanced search
tweets = await client.search(
query="$SPA OR $USDs",
start_time="2024-01-01T00:00:00Z",
end_time="2024-12-31T23:59:59Z",
tweet_fields=["public_metrics", "created_at", "author_id"],
sort_order="relevancy",
max_results=100
)
# Filtered stream
rules = [
{"value": "sperax OR USDs OR SPA -is:retweet", "tag": "sperax"},
{"value": "defi yield arbitrum -is:retweet", "tag": "defi"},
]
async for tweet in client.stream(rules):
print(f"[{tweet.tag}] {tweet.text}")
Spaces
# Get live Spaces
spaces = await client.get_spaces(query="crypto defi")
# Get Space details
space = await client.get_space(space_id)
# { title, host, speakers, listeners, started_at, ... }
# Create a Space (requires host permissions)
space = await client.create_space(
title="Sperax Community AMA",
scheduled_start="2024-12-01T18:00:00Z"
)
Communities
# Get community info
community = await client.get_community(community_id)
# Get community tweets
tweets = await client.get_community_tweets(community_id, limit=50)
# Post to community
await client.community_tweet(community_id, "New farm pools are live! 🌾")
User Management
# Get user profile
user = await client.get_user("SperaxOfficial")
# { id, name, username, followers_count, following_count, ... }
# Get followers
followers = await client.get_followers("SperaxOfficial", limit=1000)
# Get following
following = await client.get_following("SperaxOfficial", limit=1000)
# Follow/unfollow
await client.follow(user_id)
await client.unfollow(user_id)
Lists
# Create a list
crypto_list = await client.create_list(
name="Crypto DeFi Leaders",
description="Top DeFi project accounts"
)
# Add members
await client.add_list_member(crypto_list.id, user_id)
# Get list tweets
tweets = await client.get_list_tweets(crypto_list.id, limit=50)
Polls
# Create a poll
await client.tweet(
"What's your favorite DeFi strategy?",
poll_options=["Yield Farming", "LP Provision", "Stablecoin Yield", "Staking"],
poll_duration_minutes=1440 # 24 hours
)
Analytics
# Tweet metrics
metrics = await client.get_tweet_metrics(tweet_id)
# { impressions, likes, retweets, replies, quotes, url_clicks }
# Account analytics
analytics = await client.get_account_analytics(
start="2024-01-01",
end="2024-12-31",
granularity="monthly"
)
Async Support
import asyncio
from xeepy import AsyncXClient
async def main():
client = AsyncXClient(...)
# Parallel requests
tasks = [
client.search("sperax"),
client.get_user("SperaxOfficial"),
client.get_trending()
]
results = await asyncio.gather(*tasks)
asyncio.run(main())
MCP Server
{
"mcpServers": {
"x-social": {
"command": "xeepy",
"args": ["serve", "--mcp"],
"env": {
"X_API_KEY": "your-key",
"X_API_SECRET": "your-secret"
}
}
}
}
Links
- GitHub: https://github.com/nirholas/xeepy
- PyPI: https://pypi.org/project/xeepy/
- X API v2 Docs: https://developer.x.com/en/docs/twitter-api
- Sperax: https://app.sperax.io
Установить xeepy-python-twitter-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл xeepy-python-twitter-guide?
Guide to xeepy — a comprehensive Python library for X (Twitter) with 154 files and 44K+ lines of code. Features full API v2 coverage, spaces, communities, lists, polls, Grok integration, and async support. 57 stars. The most complete Python X library.
Как установить скилл xeepy-python-twitter-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xeepy-python-twitter-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic