Twitter User Keyword Scraper: The Ultimate Tool for User Data avatar

Twitter User Keyword Scraper: The Ultimate Tool for User Data

Try for free

2 hours trial then $5.99/month - No credit card required now

View all Actors
Twitter User Keyword Scraper: The Ultimate Tool for User Data

Twitter User Keyword Scraper: The Ultimate Tool for User Data

fastcrawler/twitter-user-keyword-scraper-the-ultimate-tool-for-user-data
Try for free

2 hours trial then $5.99/month - No credit card required now

Get 1,000 results for just $0.02! Introducing the Twitter User Keyword Scraper, your go-to solution for scraping Twitter users based on specific keywords.

You can access the Twitter User Keyword Scraper: The Ultimate Tool for User Data 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    "keywords": [
10        "crypto",
11        "stock",
12    ],
13    "onlyVerifiedUsers": False,
14    "onlyBuleVerifiedUsers": False,
15    "cookies": ["auth_token=5f45eda1b32ec30c38ffc03a35f09993f9ed9279;guest_id=v1%3A172733156939614471;twid=u%3D1479073844589895680;external_referer=padhuUp37zjaCVW9CFFy1MXz35J9qwIKnhdpbcxuaHuU9wkWfMnJ%2Fg%3D%3D|0|8e8t2xd8A2w%3D;night_mode=2;ct0=3585a38c8af0b6d78485bc7bee8a766a16edac3a90ea4d45cc7d8ca719976f2b73b8607786289972565d8803c5c4dbfbfbcbb33be82aa26e2f3c7c61b225e4da9d9ff11f85c9b3fa7d0b590a60afc9d3;guest_id_ads=v1%3A172733156939614471;guest_id_marketing=v1%3A172733156939614471;kdt=sX3joOVuHlM3TGRo9UzOCTOhGNJXZ4S0rJKMoyaZ;personalization_id=v1_BZRq0u8e9t7wzUakk1gdNg=="],
16    "nextCursor": "",
17}
18
19# Run the Actor and wait for it to finish
20run = client.actor("fastcrawler/twitter-user-keyword-scraper-the-ultimate-tool-for-user-data").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 User Keyword Scraper: The Ultimate Tool for User Data API in Python

The Apify API client for Python is the official library that allows you to use Twitter User Keyword Scraper: The Ultimate Tool for User Data API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

pip install apify-client

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 1 monthly user
  • 1 star
  • 100.0% runs succeeded
  • Created in Nov 2024
  • Modified 1 day ago