VOOZH about

URL: https://apify.com/hamdo/twitter-profile-scraper

โ‡ฑ Twitter Profile Scraper [DEPRECATED] ยท Apify


๐Ÿ‘ Twitter Profile Scraper avatar

Twitter Profile Scraper

Deprecated

Pricing

from $0.10 / 1,000 results

Go to Apify Store

Twitter Profile Scraper

Deprecated

Twitter/X Profile Scraper A fast and reliable Actor designed to fetch essential Twitter/X profile information with minimal input. Simply provide a list of usernames (without the @), and the Actor will automatically collect key profile details with high accuracy.

Pricing

from $0.10 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Mahmoud Alhamdo

Mahmoud Alhamdo

Maintained by Community

Actor stats

0

Bookmarked

16

Total users

1

Monthly active users

4 months ago

Last modified

Share

Twitter/X Profile Scraper

A fast and efficient Apify Actor built with Python and Playwright to scrape Twitter/X user profile information.

๐Ÿš€ Features

  • Fast scraping using Playwright for reliable data extraction
  • Simple input - just provide usernames (without @)
  • Extracts essential profile data:
    • Name
    • Bio/Description
    • Location
  • Handles dynamic content - waits for page elements to load properly
  • Error handling - continues processing even if one profile fails

๐Ÿ“‹ Input

The Actor accepts a list of Twitter/X usernames:

{
"usernames":["LG1904","username2","username3"]
}

Note: Usernames should be provided without the @ symbol.

๐Ÿ“ค Output

The Actor outputs profile data in the following format:

{
"name":"LG",
"bio":"ู…ู‡ุชู… ุจุงู„ุนู…ู„ุงุช ุงู„ุฑู‚ู…ูŠุฉ ูˆุงู„ุงุณุชุซู…ุงุฑ | ุฃุชุงุจุน ุฃุญุฏุซ ุงู„ุฃุฎุจุงุฑ ูˆุฃูุถู„ ุงู„ูุฑุต ุงู„ุงุณุชุซู…ุงุฑูŠุฉ | Focused on crypto investments and market opportunities. Snapchat : LG055555",
"location":"ุงู„ุฑูŠุงุถ"
}

Each profile is saved as a separate item in the dataset.

๐Ÿ› ๏ธ Built With

  • Apify SDK for Python - toolkit for building Apify Actors
  • Playwright - browser automation library for reliable web scraping
  • Input schema - validates and defines Actor input
  • Dataset - stores structured output data

๐Ÿšฆ Getting Started

Prerequisites

  • Python 3.8+
  • Apify CLI installed
  • Playwright browsers installed

Installation

  1. Clone or download this Actor

  2. Install dependencies:

    $pip install-r requirements.txt
  3. Install Playwright browsers:

    $playwright install --with-deps

Running Locally

  1. Update the input file storage/key_value_stores/default/INPUT.json:

    {
    "usernames":["LG1904"]
    }
  2. Run the Actor:

    $apify run
  3. Check the results in storage/datasets/default/

๐Ÿ“ฆ Deploy to Apify Platform

Option 1: Push from Local Machine

  1. Log in to Apify:

    $apify login

    You'll need your Apify API Token

  2. Deploy the Actor:

    $apify push
  3. Find your Actor in Actors -> My Actors

Option 2: Connect Git Repository

  1. Push your code to a Git repository (GitHub, GitLab, etc.)

  2. Go to Actor creation page

  3. Click Link Git Repository and follow the instructions

๐Ÿ“Š How It Works

  1. The Actor reads usernames from the input
  2. For each username, it navigates to https://x.com/{username}
  3. Waits for the page to load and dynamic content to render
  4. Extracts profile information using CSS selectors:
    • Name: from div[data-testid="UserName"]
    • Bio: from div[data-testid="UserDescription"] span
    • Location: from span[data-testid="UserLocation"] span span
  5. Saves the extracted data to the dataset

โš™๏ธ Configuration

The Actor uses the following settings:

  • Timeout: 60 seconds for page load
  • Wait strategy: Uses load event (more reliable than networkidle for Twitter/X)
  • Additional wait: 3 seconds for dynamic content to render
  • User agent: Standard Chrome user agent to avoid detection

๐Ÿ”ง Troubleshooting

Timeout Errors

If you encounter timeout errors, the page might be loading slowly. The Actor already uses optimized timeouts, but you can adjust them in src/main.py if needed.

Missing Data

If some fields are missing (null), it might mean:

  • The profile doesn't have that information
  • The page structure changed (Twitter/X updates their HTML)
  • The page didn't load completely

Rate Limiting

Twitter/X may rate limit requests if you scrape too many profiles too quickly. Consider adding delays between requests if needed.

๐Ÿ“š Resources

๐Ÿ“ License

This Actor is provided as-is. Make sure to comply with Twitter/X Terms of Service when using this scraper.

๐Ÿค Contributing

Feel free to submit issues or pull requests to improve this Actor!

๐Ÿ“ง Support

For issues and questions:


Note: This Actor is for educational and legitimate use cases only. Always respect website terms of service and rate limits.

You might also like

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.4K

2.1

(11)

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!

3.6K

4.2

(15)

X (Twitter) Profile Posts Scraper

scraper_one/x-profile-posts-scraper

Extract posts published by specified X (Twitter) profiles. Retrieve URLs, IDs, content, publication dates, text and engagement metrics. Ideal for social media monitoring solutions.

1.7K

5.0

(2)

Advanced X (Twitter) Profile Scraper

delicious_zebu/advanced-x-twitter-profile-scraper

Scrape all tweets from any X (Twitter) profile, not just recent ones. Uses advanced search with specific date ranges to capture far more data. Fast, stable & data-rich.

3.6K

5.0

(19)

X.com Profiles Scraper

parseforge/x-com-profiles-scraper

Extract comprehensive profile data from X.com (Twitter) including follower counts, verification status, bio, join dates, and 40+ data points. Collect usernames, profile images, location, pinned posts, and professional info. Perfect for marketers, researchers, recruiters, and social media analysts.

Twitter Profile Scraper (No Cookies)

dead00/twitter-profile-scraper-no-cookies

Extracts comprehensive Twitter profile data including bio, follower counts, latest tweets, and all other profile details.

X(twitter) User Profile & Tweets Scraper

scrapio/twitter-scraper

Scrapes tweets and profile data from Twitter X, capturing usernames, bios, tweet text, media, timestamps, metrics, follower counts, and profile URLs. Ideal for trend tracking, research, influencer insights, and large-scale Twitter X data extraction

Twitter/X Profile Scraper ยท No Cookies

data-slayer/twitter-user

Extract detailed Twitter/X user profiles by username without login. Get bio, follower/following counts, tweet count, verification status, profile images, location, website, account creation date, and business labels. No cookies, no API key. JSON/CSV/Excel export.

X (Twitter) Profile Scraper

alvaraaz/x-profile-scraper

X Profile Scraper automates extraction of X (Twitter) profiles, posts, likes, retweets, and engagement metrics. Ideal for social media analytics, competitor research, brand monitoring and marketing.

๐Ÿ‘ User avatar

Jose Fernando รlvarez Romero

60

Twitter (X) Profile Details Scraper

lead.gen.labs/twitter-x-profile-details-scraper

With ease, extract public bio, follower count, and profile URLs from any Twitter(X) profile. Ideal for social media insights, influencer discovery, or lead generation.

58