frago-x-extract-tweet-with-comments

Twitter/X tweet and comment extraction and content production guide. Use this skill when users mention "Twitter videos", "tweet opinions", "X comment videos", "netizen opinion videos", or explicitly specify this skill. Covers material collection, opinion organization, and narration script generation workflow.

$ Instalar

git clone https://github.com/tsaijamey/frago /tmp/frago && cp -r /tmp/frago/src/frago/resources/skills/frago-x-extract-tweet-with-comments ~/.claude/skills/frago

// tip: Run this command in your terminal to install the skill


name: frago-x-extract-tweet-with-comments description: Twitter/X tweet and comment extraction and content production guide. Use this skill when users mention "Twitter videos", "tweet opinions", "X comment videos", "netizen opinion videos", or explicitly specify this skill. Covers material collection, opinion organization, and narration script generation workflow.

X Extract Tweet with Comments - Content Production Guide

Collect posts and comments from Twitter/X around specific topics, organize netizen opinions and add host commentary, and generate narration scripts.

Warning: Core Principle - Document Output Oriented

The output of this skill serves subsequent stages, and all processes must be documented in files.

  1. Do not just display in response - Results of each stage must be written to corresponding outputs/ files
  2. Incremental saving - Write to files immediately after collecting/organizing each batch of content, don't wait until the end
  3. Traceable - All content must be annotated with real sources (URLs) to ensure subsequent verification
  4. Templates are for format reference only - Placeholders must be replaced with real content, copying example text is prohibited

Production Workflow

StageTaskOutputManual Intervention
1. Material CollectionSearch/browse on X, incrementally record materials01_draft.jsonl-
2. Extraction & OrganizationCategorize opinions, discuss "my" viewpoint with user02_content_draft.md-
3. Narration GenerationGenerate formal narration script03_narration.mdAdjust narration content

Stage 1: Material Collection

Output: outputs/01_draft.jsonl, incrementally record all materials.

Principle: Better more than less, missing materials cannot be traced later.

01_draft.jsonl Fields: type(tweet/comment), url, author, content, scroll_to_text, parent_url(required for comments)

Format example see templates/01_draft.jsonl

Warning: Critical Constraints (Must Follow)

  1. Do not copy template example content - Templates are for format reference only, each record must be actually collected material
  2. URLs must be real - Obtain from browser address bar or DOM, fabricating or using placeholders is strictly prohibited
  3. Clear output file before starting collection - Ensure outputs/01_draft.jsonl doesn't contain old data or template content

Screenshot Usage Guidelines

Principle: Use screenshots sparingly, use recipes to extract content more.

PurposeCorrectIncorrect
Get contentx_extract_* recipesScreenshot and let AI "read"
Verify statusScreenshot check-
Backup positionScreenshot (comments may reorder)-

Stage 2: Extraction & Organization

Extract materials from 01_draft.jsonl, categorize and organize, discuss "my" opinions with user.

Output: outputs/02_content_draft.md, contains categorized opinions and "my comments".

Template see templates/02_content_draft.md

Query command: cat outputs/01_draft.jsonl | jq 'select(.type=="tweet")'


Stage 3: Narration Generation

Generate formal narration script based on 02_content_draft.md.

Output: outputs/03_narration.md

Template see templates/03_narration.md

Style Requirements:

  • Conversational, brisk language rhythm
  • Get straight to the topic, no self-introduction
  • Start with an impactful hook to grab attention

Manual Operation: Adjust narration content to ensure natural and smooth expression.


Common Issues

IssueSolution
Cannot find target elementUse longer text snippets
Comment position changesScreenshot backup during collection

Reference Documentation

  • Twitter element features and selectors: REFERENCE.md
  • frago CDP commands: uv run frago --help

Repository

tsaijamey
tsaijamey
Author
tsaijamey/frago/src/frago/resources/skills/frago-x-extract-tweet-with-comments
35
Stars
4
Forks
Updated4d ago
Added6d ago