1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "maxItems": 10,
10 "twitterHandles": [
11 "elonmusk",
12 "sama",
13 "naval",
14 "paulg",
15 "garrytan",
16 "vitalikbuterin",
17 "jack",
18 "barackobama",
19 "billgates",
20 "justinbieber",
21 "taylorswift13",
22 "rihanna",
23 "selenagomez",
24 "cristiano",
25 "narendramodi",
26 "potus",
27 "cnn",
28 "bbcworld",
29 "nytimes",
30 "reuters",
31 "bloomberg",
32 "nasa",
33 "spacex",
34 "tesla",
35 "apple",
36 "google",
37 "microsoft",
38 "amazon",
39 "netflix",
40 "openai",
41 "ylecun",
42 "karpathy",
43 "sundarpichai",
44 "tim_cook",
45 "satyanadella",
46 "jeffbezos",
47 "shakira",
48 "kimkardashian",
49 "arianagrande",
50 "drake",
51 "beyonce",
52 "katyperry",
53 "arishlp",
54 "jeffdean",
55 "demishassabis",
56 "ilyasut",
57 "andrewyng",
58 "pmarca",
59 "balajis",
60 "palmerluckey",
61 ],
62}
63
64
65run = client.actor("parseforge/x-com-profiles-scraper").call(run_input=run_input)
66
67
68print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
69for item in client.dataset(run["defaultDatasetId"]).iterate_items():
70 print(item)
71
72