mcpField
T
twitter-video-downloader

twitter-video-downloader

github.com/redfox-dataCreative & media45065 installsUpdated 1d ago
Repository

About twitter-video-downloader

twitter-video-downloader is a skill for saving X videos and organizing source material. It uses the redfox.hk API to parse one post link at a time and return a watermark-free video download URL, supporting both x.com and twitter.com links.

Key features

  1. 01Return watermark-free links for X videos
  2. 02Support x.com and twitter.com links
  3. 03Process one video link at a time
  4. 04Retrieve download links through the redfox.hk API

Use cases

  1. 01Save X videos for offline viewing
  2. 02Collect Twitter videos
  3. 03Get material for editing and remixing
  4. 04Back up videos of interest

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/redfox-data/redfox-community --skill twitter-video-downloader

After installing, type/twitter-video-downloaderin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.en.md
README.md
scripts/
downloader.py

Details

From the project README

X(Twitter)视频下载

通过 redfox.hk API 解析 X(Twitter) 视频链接,直接返回无水印视频下载链接。


能力概述

  • 平台支持:X(Twitter)
  • 内容类型:视频(mp4 下载直链)
  • 输入方式:粘贴 X(Twitter) 视频推文链接即可(每次仅限一个链接,不支持批量上传)
  • 输出结果:直接返回视频下载链接,复制到浏览器或下载工具即可保存

使用方式

示例命令

下载 X(Twitter) 视频:

python3 "$SKILL_PATH/scripts/downloader.py" "https://x.com/user/status/xxxxx"
首次使用

先配置 API Key,然后运行:

# 设置环境变量
export REDFOX_API_KEY=ak_你的密钥

# 解析视频,获取下载链接
python3 "$SKILL_PATH/scripts/downloader.py" "https://x.com/user/status/xxxxx"

前往 redfox.hk 注册获取 API Key。

后续使用

配置方式(任选其一):

方式命令
环境变量(推荐)export REDFOX_API_KEY=ark_你的密钥
命令行参数python3 "$SKILL_PATH/scripts/downloader.py" "<链接>" --api-key ark_你的密钥
配置文件echo '{"api_key":"ark_你的密钥"}' > ~/.qoder/apis/redfox.json

特色功能

功能说明
无水印直链API 自动返回无水印视频下载链接,无需手动处理
即贴即解析粘贴推文链接即可,无需额外操作
链接自适应支持 x.com 与 twitter.com 两种域名链接
结果直出解析完成直接返回下载链接,复制即可用

常见使用场景

场景示例链接说明
保存 X 上的视频https://x.com/user/status/xxxxx获取无水印视频下载链接
推特视频离线收藏https://twitter.com/user/status/xxxxx解析后复制链接下载保存
内容二次创作任意 X 视频链接下载素材用于剪辑创作
素材备份任意 X 视频链接备份喜欢的视频到本地
支持的作品链接格式
平台链接格式示例
X(Twitter)https://x.com/<用户名>/status/<推文ID>PC 网页链接 / 手机分享链接
X(Twitter)https://twitter.com/<用户名>/status/<推文ID>旧域名链接

常见问题

Q:如何获取自己的 API Key? A:前往 redfox.hk 注册即可获取 Token。

Q:下载的视频有水印吗? A:没有。API 返回的是无水印视频直链。

Q:可以批量上传多个链接吗? A:不支持。每次只能输入一个链接,批量上传会导致解析失败。

Q:链接提示解析失败怎么办? A:确认链接是否完整、推文是否仍然存在、账号内容是否公开。私密账号或已删除推文无法解析。


了解更多

本工具基于 redfox.hk 的 parseWork/videoDownload/x 接口构建。前往官网查看更多 API 能力和使用文档。

Comments

Markdown supported