
Twitter/X Comment Scraper:Support Sentiment&Tone Analyzer
30 minutes trial then $15.00/month - No credit card required now

Twitter/X Comment Scraper:Support Sentiment&Tone Analyzer
30 minutes trial then $15.00/month - No credit card required now
Extract up to 1,000 Twitter/X comments for just $0.01! With advanced sentiment and tone analysis, our Reply & Comment Scraper lets you sort replies by relevancy or likes effortlessly. Designed for speed and precision, it’s your ultimate tool for analyzing Twitter conversations efficiently.
You can access the Twitter/X Comment Scraper:Support Sentiment&Tone Analyzer programmatically from your own Python applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9 "tweetUrl": "https://x.com/realDonaldTrump/status/1844869841087258770",
10 "sentimentAnalysis": False,
11 "cookies": ["auth_token=3b8fe4e97592a04eed6fd4b49032f3cbaa6988d9;gt=1892430785468387696;ph_phc_TXdpocbGVeZVm5VJmAsHTMrCofBQu3e0kN8HGMNGTVW_posthog=%7B%22distinct_id%22%3A%220194698a-e095-7869-940a-3a43aa499620%22%2C%22%24sesid%22%3A%5B1739538623373%2C%2201950494-eac4-7174-90ac-074bfb942d50%22%2C1739538623172%5D%7D;guest_id=v1%3A174002642638145290;twid=u%3D1479073844589895680;night_mode=2;att=1-ixFEWH3z4WMLoQNY6rNzcPtszk4Dg3CTczfoMFgG;ct0=62eacb29f0418fa8002e0aae5806e0eaf2c7d5bbd27acf4a163274ec06060ffbd6f149b96ef5db2bc7b7cbbd49285e013412e1c7329eef8b3085565bb6710b52aa092f6df7de486e5f148d011ba23103;dnt=1;guest_id_ads=v1%3A174002642638145290;guest_id_marketing=v1%3A174002642638145290;kdt=O83gjfkTl8AaNp5z3JXyUGdr1k0xFZPBwD9myC97;personalization_id=v1_SkJRGfsm95VskQ4ujBPgEQ=="],
12 "nextCursor": "",
13 "rankingMode": "Relevance",
14}
15
16# Run the Actor and wait for it to finish
17run = client.actor("fastcrawler/twitter-x-comment-scraper-support-sentiment-tone-analyzer").call(run_input=run_input)
18
19# Fetch and print Actor results from the run's dataset (if there are any)
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Twitter/X Comment Scraper:Support Sentiment&Tone Analyzer API in Python
The Apify API client for Python is the official library that allows you to use Twitter/X Comment Scraper:Support Sentiment&Tone Analyzer API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
pip install apify-client
Other API clients include:
Actor Metrics
14 monthly users
-
8 bookmarks
96% runs succeeded
2.7 hours response time
Created in Oct 2024
Modified 20 hours ago