1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "conditions": ["obesity"],
10 "searchTerms": [],
11 "interventions": [],
12 "sponsors": [],
13 "locations": [],
14 "overallStatus": ["RECRUITING"],
15 "phases": [],
16 "startDateFrom": "",
17 "startDateTo": "",
18 "lastUpdateFrom": "",
19 "lastUpdateTo": "",
20 "nctIds": [],
21 "maxItems": 20,
22}
23
24
25run = client.actor("deanko/clinicaltrials-scraper").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32