VOOZH about

URL: https://apify.com/akshaynceo/x-scrapper-twitter-scraper

⇱ X-Scrapper/Twitter-Scraper Β· Apify


Pricing

Pay per usage

Go to Apify Store

Pricing

Pay per usage

Rating

0.0

(0)

Developer

πŸ‘ AKSHAY N

AKSHAY N

Maintained by Community

Actor stats

0

Bookmarked

256

Total users

13

Monthly active users

6 months ago

Last modified

Categories

Share

Twitter/X Scraper (Python)

A powerful Apify actor to scrape Twitter/X data without requiring authentication. Uses Playwright for browser automation and extracts data directly from the Twitter/X website.

Features

βœ… No Authentication Required - Works without login cookies
βœ… Search Tweets - Find tweets by keywords, hashtags
βœ… User Timelines - Get tweets from any public user
βœ… User Profiles - Extract profile information
βœ… Media & Replies - Filter for specific content types
βœ… Engagement Metrics - Likes, retweets, replies, views
βœ… Anti-Detection - Built-in stealth features

How It Works

  1. Playwright Browser - Uses a real browser to access Twitter
  2. Guest Token - Obtains guest credentials automatically
  3. DOM Extraction - Parses tweets directly from the page
  4. Infinite Scroll - Automatically scrolls to load more tweets

Input Parameters

Search Configuration

ParameterTypeDescription
search_termsArraySearch queries (e.g., #AI, bitcoin)
usernamesArrayTwitter usernames to scrape (without @)
tweet_urlsArrayDirect URLs to specific tweets

Scraping Options

ParameterTypeDefaultDescription
scrape_typeStringtweetsWhat to scrape: tweets, profile, replies, media
max_tweetsInteger50Maximum tweets per search/user
include_repliesBooleanfalseInclude reply tweets
include_retweetsBooleantrueInclude retweets

Filters

ParameterTypeDescription
min_likesIntegerMinimum likes filter
min_retweetsIntegerMinimum retweets filter

Output Format

Tweet Data

{
"tweet_id":"1234567890",
"text":"Tweet content here...",
"author_name":"Elon Musk",
"author_username":"elonmusk",
"likes":50000,
"retweets":10000,
"replies":5000,
"views":1000000,
"created_at":"2024-01-15T10:30:00.000Z",
"url":"https://x.com/elonmusk/status/1234567890",
"is_retweet":false,
"is_reply":false,
"media":[{"type":"image","url":"..."}],
"hashtags":["#tech"],
"mentions":["@OpenAI"],
"scraped_at":"2024-01-15T12:00:00.000Z"
}

Profile Data

{
"name":"Elon Musk",
"username":"elonmusk",
"bio":"...",
"location":"Austin, TX",
"website":"tesla.com",
"join_date":"Joined June 2009",
"followers":"170M",
"following":"500",
"is_verified":true,
"profile_image_url":"...",
"url":"https://x.com/elonmusk",
"scraped_at":"2024-01-15T12:00:00.000Z"
}

Local Development

Prerequisites

  • Python 3.9+
  • pip

Setup

# Navigate to the actor directory
cd twitter-scraper-python
# Create virtual environment
python -m venv venv
# Activate (Windows)
.\venv\Scripts\activate
# Activate (Linux/Mac)
source venv/bin/activate
# Install dependencies
pip install-r requirements.txt
# Install Playwright browsers
playwright install chromium

Run Locally

# Using Apify CLI
apify run
# Or directly
python -m src.main

Test Input

Edit apify_storage/key_value_stores/default/INPUT.json:

{
"usernames":["elonmusk"],
"max_tweets":10
}

Deployment to Apify

# Login to Apify
apify login
# Push to Apify
apify push

Limitations

  • Rate Limits: Twitter may rate-limit after many requests
  • Login Walls: Some content requires authentication
  • Dynamic Changes: Twitter's DOM may change

Tips

  • Use residential proxies for better success rates
  • Start with small limits to test
  • Use Apify Proxy when deploying to Apify platform

License

ISC License

You might also like

Twitter Profile Scraper

pratikdani/twitter-profile-scraper

The **Twitter Profile Scraper** collects detailed information from any public Twitter profile. Enter the profile URL to retrieve data such as follower count, post details, and profile information. Ideal for tracking and analyzing Twitter activity.

494

1.0

X Tweet Scraper | $0.15/1K Tweets | Pay-Per Result

xquik/x-tweet-scraper

Scrape X/Twitter tweets for just $0.15 per 1,000 results. Advanced search with 40+ filters, batch tweet lookup, multiple search terms. No API key needed, no rate limits. Export JSON, CSV, Excel. Cheapest tweet scraper on Apify. Twitter API alternative by Xquik.

Tweet Scraper V1.0 - / Twitter Scrapper

rhamadhanigb19/Scrapping-X

This actor was created to automatically scrape tweets for various purposes, such as research and business. You can use this actor easily. We do not store any cookies required to run the actor.

Twitter Profile Scraper

happitap/twitter-profile-scraper

Extract user profile data from X/Twitter. Get bio, followers, following, verification status, tweet count, and more β€” in batch. This Actor scrapes Twitter user profiles by intercepting the platform's internal GraphQL API. Provide usernames or profile URLs and get structured profile data instantly.

🏯 Tweet Scraper V2 - X / Twitter Scraper

apidojo/tweet-scraper

⚑️ Lightning-fast search, URL, list, and profile scraping, with customizable filters. At $0.40 per 1000 tweets, and 30-80 tweets per second, it is ideal for researchers, entrepreneurs, and businesses! Get comprehensive insights from Twitter (X) now!

62K

4.1

Post (Tweet) Scrapper - X.com / Twitter (Pay per result)

builditn0w/x-twitter-scrapper

πŸ’° $0.35 per 1000 tweets / custom search query

Twitter Profile Scraper: Get Profile Tweets + Their Replies

apidojo/twitter-profile-scraper

Extract tweets, replies & engagement data from Twitter profiles. $0.016 per profile includes 40 tweets FREE. Get likes, retweets, views & media URLs. Date filtering, reply extraction, custom data transformation. No authentication, no proxy required. Event-based pricing, only pay for what you scrape!

1.5K

2.1

🌸 Tweets / X - Scraper

mikolabs/x-scraper

Extract anything from X (Twitter) with speed and precision. This smart scraper auto-detects what to collectβ€”tweets, profiles, users, lists, or mediaβ€”and delivers clean, structured data instantly. Just enter usernames, URLs, or keywords and let automation do the rest.

X(twitter) User Profile & Tweets Scraper

logical_scrapers/x-twitter-user-profile-tweets-scraper

[$0.001/profile] scrapes full user information, tweets, replies from X(Twitter) profiles. It works in guest mode without requiring authentication and can retrieve tweets from any public Twitter account.

Twitter Profile Scraper

epctex/twitter-profile-scraper

Scrape any Twitter profile of any user. Extract tweets, replies, favorites, retweets, conversation threads and many more without any limit. Gather user related information such as verification, location, profile image, friends, followers, following and much more! No limits on Twitter!