Skip to content

ayotho/x-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

X Scraper

Scrape X (Twitter) posts without API keys. Gets content, metrics, author info, and media from any public post URL.

No setup. No authentication. Just paste a link.

Install

Claude Desktop

  1. Download x-scraper.skill
  2. Drag the file into any Claude Desktop conversation
  3. Done — ask Claude to scrape any X post

Claude Code

Run this in your project folder:

mkdir -p .claude/skills/x-scraper/scripts && curl -sL https://raw.githubusercontent.com/ayotho/x-scraper/main/SKILL.md -o .claude/skills/x-scraper/SKILL.md && curl -sL https://raw.githubusercontent.com/ayotho/x-scraper/main/scripts/x_scraper.py -o .claude/skills/x-scraper/scripts/x_scraper.py

Then ask Claude to scrape any X post.

Example

You give it an X post link:

https://x.com/matt_gray_/status/2016925890035200084

It returns all the data from that post:

{
  "url": "https://x.com/matt_gray_/status/2016925890035200084",
  "content": "Freedom is:\n\n• Nature\n• Saying no\n• Road trips\n• Great hires\n• Deep sleep\n• No meetings\n• 4-hour workdays\n• Do not disturb mode\n• Controlling your schedule\n• Spontaneous adventures\n\nEntrepreneurship is about freedom.",
  "author_name": "MATT GRAY",
  "author_handle": "@matt_gray_",
  "likes": 197,
  "retweets": 15,
  "replies": 83,
  "views": 5932,
  "bookmarks": 35,
  "created_at": "Thu Jan 29 17:26:19 +0000 2026",
  "media": []
}

Works with any public post — just paste the link and Claude handles the rest.

What you get

  • Post text (full content)
  • Author name and @handle
  • Likes, retweets, replies, views, bookmarks
  • Media links (images/videos)
  • Timestamps
  • Reply info (who it's replying to)

Requirements

  • Python 3.7+
  • requests (pip install requests)

About

Scrape X (Twitter) posts without API keys. Works as a Claude skill or standalone Python script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages