twitter-downloader
Twitter Downloader Skill
A compact, reliable workflow to parse Twitter/X URLs, fetch structured JSON via the public fxtwitter API (no auth), summarize the tweet, and download media files to Minis for easy sharing.
When to Use
- User provides a twitter.com or x.com URL
- User asks to download video/images/GIF from a tweet
- User asks “这条推文里有什么/what’s in this tweet” and you may also need media links/files
What It Does
- Parse username and status ID from any Twitter/X URL variant
- Fetch tweet JSON from api.fxtwitter.com (fallback api.vxtwitter.com)
- Produce a short summary (author, handle, created time, text, sensitive flag)
- Extract direct media URLs (best bitrate for videos when available)
- Optionally download photos, thumbnails, and videos to a local folder and return Minis links
Dependencies
- curl
- jq
The helper script auto-installs missing packages: apk add --no-cache curl jq.
Helper Script
Path: /var/minis/skills/twitter-downloader/scripts/twitter_downloader.sh
Usage:
- Summarize only /var/minis/skills/twitter-downloader/scripts/twitter_downloader.sh ""
- Download images and/or video to a directory /var/minis/skills/twitter-downloader/scripts/twitter_downloader.sh "" --dir "/var/minis/workspace/tweet_media" --images --video
Outputs:
- JSON: DIR/<tweet_id>.json
- Summary: DIR/<tweet_id>_summary.txt
- Media (if downloaded): DIR/<tweet_id>/...
Agent Workflow
- Normalize input URL (accept any twitter.com or x.com format).
- Run the helper script without downloads to get summary + links.
- If the user wants files in chat, re-run with --images/--video and show Minis links:
- Example: tweet_media/.json
- Example folder: tweet_media//
- If analysis is requested, pass downloaded image/thumbnail files to vision and describe content.
Error Handling
- If URL parsing fails: ask for a valid twitter.com/x.com status URL
- If fxtwitter fails: auto-retry with vxtwitter; if both fail, report outage and suggest trying later
- If the tweet is deleted/private: explain that media/text may be unavailable
Safety
- Respect
possibly_sensitive; don’t auto-render explicit content; describe neutrally if asked
Notes
- Videos may include multiple variants; the script picks the highest bitrate when available
- Thumbnails (JPEG) are downloaded for video/GIF if
--imagesis set (useful for quick vision analysis)
More from openminis/minisskills
douyin-downloader
Download Douyin (抖音) videos from share links. Parse Douyin share text/links, download watermark-free videos, and transcribe audio to text using Volcano Engine ASR (Doubao Speech). Uses Python for iSH compatibility.
11web-search
>
7twitter-x-hub
>
7doubao-tts
使用豆包语音合成(Volcengine TTS)将文本转为语音文件。当用户提到"豆包TTS"、"豆包语音合成"、"doubao tts"、"火山引擎TTS"、"volcengine tts"、"语音合成"、"文字转语音"、"TTS"、"生成音频"、"朗读文字",或任何需要调用豆包/火山引擎语音合成 API 的场景,必须触发本技能。
6exa-search
Search the web, read webpages as markdown, and run filtered web retrieval with Exa MCP. Use this skill whenever the user asks for current web information, web research, domain/date/category-filtered search, company or people lookup via search filters, or extracting clean page content from one or more URLs.
6bilibili-hub
>
6