1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": [
10 "climate resilience",
11 "energy",
12 ],
13 "projectCountryCodes": [
14 "IN",
15 "BR",
16 ],
17 "projectRegion": "",
18 "projectStatus": "",
19 "projectSector": "",
20 "maxProjectRecords": 500,
21 "projectIds": [],
22 "indicatorCodes": [],
23 "indicatorCountryCodes": [],
24 "maxIndicatorRecords": 50,
25}
26
27
28run = client.actor("maximedupre/world-bank-projects-scraper").call(run_input=run_input)
29
30
31print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33 print(item)
34
35