1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [],
10 "searchAreas": [{
11 "latitude": 37.7749,
12 "longitude": -122.4194,
13 "radiusKm": 25,
14 "label": "San Francisco, CA",
15 }],
16 "maxItemsPerArea": 25,
17 "maxResults": 0,
18 "connectorTypes": [],
19 "fastChargersOnly": False,
20 "minKilowatts": 0,
21 "minPlugScore": 0,
22 "availableNowOnly": False,
23 "excludeUnderRepair": False,
24 "excludeComingSoon": False,
25 "networkIncludes": [],
26 "networkExcludes": [],
27 "includeDetails": True,
28 "includeReviews": False,
29 "onlyNewOrChanged": False,
30 "requestDelayMs": 300,
31 "maxConcurrency": 3,
32 "proxyConfiguration": {
33 "useApifyProxy": True,
34 "apifyProxyGroups": ["RESIDENTIAL"],
35 },
36}
37
38
39run = client.actor("getascraper/plugshare-scraper").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46