1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "pubKeyword": "cholera",
10 "watchKeywords": [
11 "outbreak",
12 "emergency",
13 "deaths",
14 ],
15 "indicators": [
16 "WHOSIS_000001",
17 "MORT_100",
18 ],
19 "countries": [
20 "IND",
21 "USA",
22 ],
23 "years": [],
24 "trialStatuses": [
25 "RECRUITING",
26 "ACTIVE_NOT_RECRUITING",
27 ],
28 "trialPhases": [
29 "PHASE2",
30 "PHASE3",
31 ],
32 "proxyConfiguration": { "useApifyProxy": True },
33}
34
35
36run = client.actor("agrawalheyramb/who-health-intelligence-scraper").call(run_input=run_input)
37
38
39print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
40for item in client.dataset(run["defaultDatasetId"]).iterate_items():
41 print(item)
42
43