twscrape

Scrape tweets, profiles, followers, and trends via GraphQL API with account rotation.

1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/ShunmeiCho/claude-config --skill twscrape-shunmeicho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: twscrape
Source: https://github.com/ShunmeiCho/claude-config/tree/main/config/skills/twscrape
Command: npx skills add https://github.com/ShunmeiCho/claude-config --skill twscrape-shunmeicho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust and efficient way to scrape data from Twitter/X, overcoming API limitations through account rotation and advanced features.

Core Features & Use Cases

  • Data Extraction: Scrape tweets, user profiles, followers, trends, and more.
  • Account Management: Supports multiple accounts with rotation and session management.
  • Use Case: You need to collect all tweets mentioning a specific hashtag over the past week for market research. This Skill can automate that process by searching Twitter/X and gathering the relevant data.

Quick Start

Use the twscrape skill to search for tweets containing the phrase "AI advancements".

Frequently Asked Questions about twscrape

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

FAQPage Schema
How do I scrape Twitter data without hitting API rate limits?

You can scrape Twitter data without hitting API rate limits by using account rotation and session management. This approach distributes requests across multiple accounts to bypass restrictions.

How does account rotation work for Twitter scraping?

Account rotation works for Twitter scraping by cycling through multiple user accounts during data extraction. This mechanism manages sessions to prevent any single account from being blocked by rate limits.

Can I extract tweets and user profiles asynchronously?

Yes, you can extract tweets and user profiles asynchronously. The scraping process supports asynchronous operations, allowing you to gather media content and trends concurrently without blocking execution.

What is the best way to collect tweets for a specific hashtag?

The best way to collect tweets for a specific hashtag is to automate the search process using a Python API or CLI. This method efficiently queries the platform to gather relevant tweets for market research.

Do I need a proxy to scrape Twitter/X data?

You do not strictly need a proxy to scrape Twitter/X data, but proxy configuration is supported. Using a proxy helps mask your IP address during data extraction, further reducing the risk of account suspension.

Does Twitter scraping work with the GraphQL API?

Yes, Twitter scraping works directly with the GraphQL API. This method queries the platform's internal endpoints to extract tweets, user profiles, followers, and trends efficiently.