1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "source_mode": "auto",
10 "search_query": "",
11 "profile_urls": [],
12 "max_items": 1000,
13 "since": "",
14 "until": "",
15 "search_sort": "Latest",
16 "all_words": [],
17 "any_words": [],
18 "exact_phrases": [],
19 "exclude_words": [],
20 "hashtags_any": [],
21 "hashtags_exclude": [],
22 "from_users": [],
23 "to_users": [],
24 "mentioning_users": [],
25 "lang": "",
26 "tweet_type": "all",
27 "verified_only": False,
28 "blue_verified_only": False,
29 "has_images": False,
30 "has_videos": False,
31 "has_links": False,
32 "has_mentions": False,
33 "has_hashtags": False,
34 "min_likes": 0,
35 "min_replies": 0,
36 "min_retweets": 0,
37 "place": "",
38 "geocode": "",
39 "near": "",
40 "within": "",
41}
42
43
44run = client.actor("altimis/scweet").call(run_input=run_input)
45
46
47print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
48for item in client.dataset(run["defaultDatasetId"]).iterate_items():
49 print(item)
50
51