首页/ AI 技能 / @skilllib/skill-2117939930272410016
Skill站外收录 @skilllib/skill-2117939930272410016

twitter-reader

直接获取 Twitter 或 X 平台单条及多条推文的完整内容,包括作者信息、发布时间、正文文本、图片描述和转发回复等结构化数据,无需浏览器渲染或账号登录,适用于需要自动化解析社交平台公开信息的场景。

0.0 (0) 186 次安装 原作者 编程导航
收录于 2026-01-22
内容与媒体 AI 技能

Skills.MD

# Twitter Reader Fetch Twitter/X post content without needing JavaScript or authentication. ## Prerequisites You need a Jina API key to use this skill: 1. Visit https://jina.ai/ to sign up (free tier available) 2. Get your API key from the dashboard 3. Set the environment variable: ```bash export JINA_API_KEY="your_api_key_here" ``` ## Quick Start For a single tweet, use curl directly: ```bash curl "https://r.jina.ai/https://x.com/USER/status/TWEET_ID" \ -H "Authorization: Bearer ${JINA_API_KEY}" ``` For multiple tweets, use the bundled script: ```bash scripts/fetch_tweets.sh url1 url2 url3 ``` ## What Gets Returned - **Title**: Post author and content preview - **URL Source**: Original tweet link - **Published Time**: GMT timestamp - **Markdown Content**: Full post text with media descriptions ## Bundled Scripts ### fetch_tweet.py Python script for fetching individual tweets. ```bash python scripts/fetch_tweet.py https://x.com/user/status/123 output.md ``` ### fetch_tweets.sh Bash script for batch fetching multiple tweets. ```bash scripts/fetch_tweets.sh \ "https://x.com/user/status/123" \ "https://x.com/user/status/456" ``` ## URL Formats Supported - `https://x.com/USER/status/ID` - `https://twitter.com/USER/status/ID` - `https://x.com/...` (redirects work automatically) ## Environment Variables - `JINA_API_KEY`: Required. Your Jina.ai API key for accessing the reader API

评论 0

还没有评论,来抢沙发。