← All skills
Tencent SkillHub Β· Developer Tools

X Twitter

X (Twitter) API client for searching tweets, retrieving article content, and fetching trending topics. Supports both Bearer Token (app-only) and OAuth 2.0 authentication.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

X (Twitter) API client for searching tweets, retrieving article content, and fetching trending topics. Supports both Bearer Token (app-only) and OAuth 2.0 authentication.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, SKILL.md, scripts/get_article.py, scripts/get_trends.py, scripts/search_tweets.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

X (Twitter) API

Search tweets, retrieve article content, and fetch trending topics from X (Twitter).

Features

Search Tweets: Search recent tweets (last 7 days) with advanced query operators Get Article Content: Retrieve tweet and article details by URL or ID Trending Topics: Fetch trending topics (requires Basic tier or higher) User Info: Get user profile and tweet history

Setup

# Set environment variable export X_BEARER_TOKEN="your_bearer_token_here" # Or temporarily for this session X_BEARER_TOKEN="your_token" python3 scripts/search_tweets.py Get API Token: Visit https://developer.x.com Create a project and app Generate Bearer Token in "Keys and Tokens" tab Set the environment variable

Search Tweets

# Basic search python3 scripts/search_tweets.py --query "AI OR δΊΊε·₯智能" # Advanced search (Chinese original tweets only) python3 scripts/search_tweets.py --query "AI -is:retweet lang:zh" --count 10 # Search by user python3 scripts/search_tweets.py --query "from:elonmusk" --count 5 # Search hashtags python3 scripts/search_tweets.py --query "#Crypto OR #Blockchain" Query Operators: -is:retweet - Original tweets only lang:zh - Chinese language from:username - Tweets from specific user has:links - Tweets with links is:verified - Verified users only

Get Article/Tweet Content

# By URL (article or tweet) python3 scripts/get_article.py --url "https://x.com/username/article/123456789" # By Tweet ID python3 scripts/get_article.py --id "123456789"

Get Trending Topics

# Global trends python3 scripts/get_trends.py # Trends by WOEID (Yahoo Where On Earth ID) python3 scripts/get_trends.py --woeid 1 # Global python3 scripts/get_trends.py --woeid 23424977 # USA

API Limits

TierCostTweets/MonthNotesFree$05001 request/day, testing onlyBasic$200500,000Minimum production tierPro$5,0002,000,000+Real-time streaming Free tier restrictions: 500 tweets/month (~16-17/day) 1 request/day per endpoint No publishing/liking Suitable for development testing only

Output Formats

JSON: Structured data with all fields Pretty: Human-readable formatted text Save: Optional file export (JSON/Markdown)

Error Handling

The scripts automatically handle: Rate limiting (429 errors) Invalid tokens (401 errors) Network errors with retry logic Missing required parameters

Example 1: Search AI tweets

python3 scripts/search_tweets.py --query "AI OR δΊΊε·₯智能 -is:retweet" --count 5 --output pretty

Example 2: Monitor specific user

python3 scripts/search_tweets.py --query "from:username" --count 10 --save output.json

Example 3: Get article and analyze

python3 scripts/get_article.py --url "https://x.com/user/article/id" --output markdown --save article.md

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Scripts2 Docs
  • SKILL.md Primary doc
  • README.md Docs
  • scripts/get_article.py Scripts
  • scripts/get_trends.py Scripts
  • scripts/search_tweets.py Scripts