Twitter trend Scraper
Pricing
$13.00/month + usage
Twitter trend Scraper
Twitter Trend scraper
0.0 (0)
Pricing
$13.00/month + usage
0
Total users
2
Monthly users
2
Runs succeeded
>99%
Last modified
2 days ago
🌍 Twitter Trend Scraper Actor
This Apify Actor scrapes trending topics from Twitter (X.com) based on a selected country. It logs in using a provided account, navigates through Twitter settings to update the country, and extracts real-time trending hashtags along with metadata like category, trending-with tags, and post counts.
Warning: This script uses credentials and automated login methods, which may violate Twitter's Terms of Service. Use it responsibly and at your own risk.
🛠 Features
- Authenticates into Twitter (X) using Selenium and
undetected-chromedriver
- Navigates to the user's country settings and updates it
- Fetches trending hashtags for the selected region
- Outputs structured data:
category
hashtag
trending_with
posts
📦 Input Schema
Field | Type | Description |
---|---|---|
country | string | Country to switch Twitter trends to. Defaults to United States . |
Example input:
🧾 Output Schema Each trend is pushed to the Apify dataset with the following format:
json
{ "category": "Trending in Pakistan", "hashtag": "#ExampleTrend", "trending_with": "#RelatedTrend1, #RelatedTrend2", "posts": "25.3K posts" }
{"country": "Pakistan"}