Twitter Cashtag Scraper: Stock & Crypto & Sentiment Analysis
2 hours trial then $5.99/month - No credit card required now
Twitter Cashtag Scraper: Stock & Crypto & Sentiment Analysis
2 hours trial then $5.99/month - No credit card required now
Unlock Market Sentiment with the Twitter Cashtag Scraper! Get 1,000 results for just $0.01! Track symbols with lightning-fast speed and gain a deeper understanding of the bullish or bearish sentiment driving market trends with precise data extraction and sentiment analysis.
You can access the Twitter Cashtag Scraper: Stock & Crypto & Sentiment Analysis 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 "cashtag": "pepe",
10 "startTime": "2024-12-07_00:00:00_UTC",
11 "endTime": "2024-12-08_23:59:59_UTC",
12 "cookies": ["guest_id_ads=v1%3A173459103170387587; guest_id_marketing=v1%3A173459103170387587; twid=u%3D1831257309936537601; lang=en; night_mode=2; personalization_id=v1_U2Cdl2vRPkqTCNdZ1Q+4hg==; auth_token=a5aaafc6342a7ca1fa821e44e2a4a9f4e09d2b77; ct0=5fb0c3b8a4436d001d65d0c51e9452ba2fc38751ade084bbcc0e50d9449926fadb96b9c8bd56370fdf57b8d239fa7fb01a3553795b281025989fcf793b51bfe980620c491d2fc5dccf66461628edc1b3; kdt=WFwn9LJ767ejrUM2EarWg3oHEBYklSLTXOYNCL1C; g_state={i_l:0}; dnt=1; guest_id=v1%3A173459103170387587"],
13 "sortBy": "Latest",
14 "sentimentAnalysis": False,
15 "onlyVerifiedUsers": False,
16 "onlyBuleVerifiedUsers": False,
17}
18
19# Run the Actor and wait for it to finish
20run = client.actor("fastcrawler/twitter-cashtag-scraper-stock-crypto-sentiment-analysis").call(run_input=run_input)
21
22# Fetch and print Actor results from the run's dataset (if there are any)
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Twitter Cashtag Scraper: Stock & Crypto & Sentiment Analysis API in Python
The Apify API client for Python is the official library that allows you to use Twitter Cashtag Scraper: Stock & Crypto & Sentiment Analysis 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
-
3 stars
94% runs succeeded
Created in Nov 2024
Modified 8 hours ago