x-fetcher

Fetch X tweets and articles and save them as Markdown.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/2670044605/agent-skills-hub --skill x-fetcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-fetcher
Source: https://github.com/2670044605/agent-skills-hub/tree/main/skills/registry/upstream/wlzh-skills/x-fetcher-skill
Command: npx skills add https://github.com/2670044605/agent-skills-hub --skill x-fetcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, PyYAML, and includes scripts (resource) components.

What problem does it solve?

Automates the extraction and archiving of X (Twitter) posts and X Articles by fetching content and saving it as Markdown for offline reading and knowledge management.

Core Features & Use Cases

  • Fetch ordinary tweets: retrieve text, media, and engagement data and save as neatly formatted Markdown.
  • Fetch X Article long articles: obtain full article content and structure it in Markdown with metadata.
  • Auto-save and config support: write Markdown to a configurable default directory and honor project-wide or user-level EXTEND.md settings.
  • Media download optionality: optionally download images/videos and rewrite Markdown links to local paths.

Quick Start

Run python3 scripts/main.py "<URL>" to fetch content and save it as Markdown using your configuration.

Frequently Asked Questions about x-fetcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save X tweets as Markdown for offline reading?

To save X tweets as Markdown, this fetcher parses tweet URLs, extracts text and engagement metrics via multi-source fetching, and writes the output to a configurable directory. It formats the extracted content into Markdown files suitable for offline knowledge bases.

What is the best way to archive Twitter articles and media automatically?

The best way to archive Twitter articles is using an automation script that fetches full content and optionally downloads media. This fetcher retrieves X Articles, structures them in Markdown, and can rewrite media links to local paths for complete offline archiving.

Can I configure the Markdown output directory for fetched tweets?

Yes, you can configure the Markdown output directory for fetched tweets. The script honors project-wide or user-level EXTEND.md settings, using frontmatter-driven configuration to determine exactly where your extracted Twitter data and articles are saved.

Does the Twitter to Markdown fetcher support downloading images and videos?

Yes, the Twitter to Markdown fetcher supports downloading images and videos. It offers optional media download functionality that retrieves embedded media from tweets and rewrites the Markdown links to point to these local file paths.

How to extract tweet data using Python requests for a knowledge base?

To extract tweet data using Python requests for a knowledge base, the script identifies tweet IDs from URLs and fetches content from multiple sources like fxtwitter and syndication. It then structures the text and engagement metrics into Markdown.