twitter-media-downloader

Twitter/X Media Downloader

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "twitter-media-downloader" with this command: npx skills add bossjones/boss-skills/bossjones-boss-skills-twitter-media-downloader

Twitter/X Media Downloader

Download images and videos from X/Twitter using gallery-dl.

Quick Start

Run the download script with a Twitter/X URL:

uv run python scripts/download.py "https://x.com/username" --output ./downloads

Supported URL Types

Authentication

For protected content (likes, bookmarks, private accounts), provide cookies:

uv run python scripts/download.py "URL" --cookies /path/to/cookies.txt

Or use browser cookies directly (recommended):

uv run python scripts/download.py "URL" --browser firefox

Note: Using --browser firefox is recommended as it automatically extracts cookies from your browser session.

Common Options

Option Description

--output DIR

Output directory (default: ./downloads)

--cookies FILE

Path to cookies.txt file

--browser NAME

Extract cookies from browser (firefox, chrome, etc.)

--videos-only

Download only videos

--images-only

Download only images

--limit N

Limit number of items to download

--retweets

Include retweets when downloading user timeline

--replies

Include replies when downloading user timeline

--json

Output structured JSON with downloaded file paths

Examples

Download all media from a user:

uv run python scripts/download.py "https://x.com/NASA" --output ./nasa_media

Download a single tweet's media:

uv run python scripts/download.py "https://x.com/user/status/1234567890"

Download only videos from a user (limit 50):

uv run python scripts/download.py "https://x.com/username" --videos-only --limit 50

Download bookmarks with Firefox cookies:

uv run python scripts/download.py "https://x.com/i/bookmarks" --browser firefox

JSON Output Mode

For programmatic use (e.g., integration with other skills), use --json to get structured output:

uv run python scripts/download.py "https://x.com/user/status/123" --json --videos-only

Output format:

{ "files": ["/path/to/downloads/twitter_user_123_1.mp4"], "tweet_id": "123", "output_dir": "/path/to/downloads", "url": "https://x.com/user/status/123", "success": true, "error": null }

This is used by the twitter-to-reel skill to automatically download videos before creating reels.

Output Structure

Files are saved with the following naming pattern:

{output_dir}/twitter_{username}{tweet_id}{num}.{ext}

Troubleshooting

  • Rate limiting: Add delays between requests with --sleep 2

  • Login required: Use --cookies or --browser for authentication

  • Missing videos: Ensure yt-dlp is installed for video downloads

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

doc-generator

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated
General

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

Archived SourceRecently Updated
General

asr

Transcribe audio files to text using local speech recognition. Triggers on: "转录", "transcribe", "语音转文字", "ASR", "识别音频", "把这段音频转成文字".

Archived SourceRecently Updated