SkillsGrove
SkillsGrove/Producción de vídeo/crazynomad/skills/twitter-downloader

twitter-downloader

Instalación

$npx skills add https://github.com/crazynomad/skills --skill twitter-downloader
$git clone --depth 1 https://github.com/crazynomad/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/twitter-downloader ~/.claude/skills/twitter-downloader
Instala por favor esta Agent Skill por mí: https://github.com/crazynomad/skills/tree/2bc470fc08b47b63af8c1721058672ad0678ab78/twitter-downloader. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · MITDownload videos from X (Twitter) posts using twmd — a fast, API-less downloader
El SKILL.md siguiente se reproduce de crazynomad/skills (commit 2bc470f) bajo la licencia MIT. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright 2026 Burn Wang. Licencia: LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los scripts.

X / Twitter Video Downloader (twmd)

Download videos from individual X (Twitter) posts using twmd, an API-less Go-based downloader.

When to Use

Use this skill when users:

  • Provide an X/Twitter post URL and want to download its video
  • Mention "下载推文视频", "download Twitter video", "save X video", "下载 X 视频"
  • Share a link like https://x.com/username/status/123456 or https://twitter.com/username/status/123456

Usage

Basic Syntax

python scripts/download_tweet.py "TWEET_URL" [OPTIONS]

Common Scenarios

Download video from a tweet:

python scripts/download_tweet.py "https://x.com/username/status/1234567890"

Specify output directory:

python scripts/download_tweet.py "https://x.com/username/status/1234567890" -o ~/Downloads/twitter

Download in specific quality:

python scripts/download_tweet.py "https://x.com/username/status/1234567890" -q 720

Print video URL without downloading:

python scripts/download_tweet.py "https://x.com/username/status/1234567890" --url-only

Arguments

Argument Description Default
url X/Twitter post URL (required) -
-o, --output Output directory Current directory
-q, --quality Video quality: best, 1080, 720, 480 best
--url-only Print video direct URL without downloading False
--cookies Path to cookies file (for private/restricted content) None

Dependencies

pip install yt-dlp

No additional setup needed. yt-dlp handles public X/Twitter posts without cookies or API keys.

Output Structure

OutputDir/
└── <tweet_id>.mp4     # Downloaded video file

twmd names files by tweet ID. The script reports the file path after download.

Authentication (Optional)

For private accounts or login-gated content, export cookies from your browser:

  1. Install a browser extension like "Get cookies.txt LOCALLY"
  2. Log in to X, then export cookies for x.com as a Netscape-format .txt file
  3. Pass the file with --cookies:
python scripts/download_tweet.py "URL" --cookies ~/x-cookies.txt

Claude Integration

When user provides an X/Twitter post URL and wants to download its video:

  1. Check if yt-dlp is installed:

    yt-dlp --version
    
  2. Install if missing:

    pip install yt-dlp
    
  3. Execute download:

    python twitter-downloader/scripts/download_tweet.py "TWEET_URL" -o ./output
    
  4. Report the downloaded file to the user with its path and size.

Common Issues

Q: Download fails with "Unable to extract" error? A: Update yt-dlp first: pip install -U yt-dlp — X/Twitter frequently changes its API.

Q: The tweet has no video? A: Try --url-only to check what media yt-dlp can find. Image-only tweets will not yield a video URL.

Q: Need to download from a private account? A: Export browser cookies (see Authentication section above) and pass with --cookies.

Q: Why not just use youtube-downloader for Twitter URLs? A: You can — yt-dlp handles Twitter URLs too. This skill provides a Twitter-focused interface with cleaner prompts and no unneeded options (playlists, subtitles, etc.).

References

Ver el texto completo de la licencia (MIT)
MIT License

Copyright (c) 2026 Burn Wang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.