Twitter trend Scraper
Pricing
$13.00/month + usage
Pricing
$13.00/month + usage
Rating
0.0
(0)
Developer
Techionik
Actor stats
0
Bookmarked
13
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
🌍 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:
categoryhashtagtrending_withposts
📦 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"}