1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "cities": [
10 "Birmingham, AL",
11 "Anchorage, AK",
12 "Phoenix, AZ",
13 "Little Rock, AR",
14 "Los Angeles, CA",
15 "Denver, CO",
16 "Bridgeport, CT",
17 "Wilmington, DE",
18 "Jacksonville, FL",
19 "Atlanta, GA",
20 "Honolulu, HI",
21 "Boise, ID",
22 "Chicago, IL",
23 "Indianapolis, IN",
24 "Des Moines, IA",
25 "Wichita, KS",
26 "Louisville, KY",
27 "New Orleans, LA",
28 "Portland, ME",
29 "Baltimore, MD",
30 "Boston, MA",
31 "Detroit, MI",
32 "Minneapolis, MN",
33 "Jackson, MS",
34 "Kansas City, MO",
35 "Billings, MT",
36 "Omaha, NE",
37 "Las Vegas, NV",
38 "Manchester, NH",
39 "Newark, NJ",
40 "Albuquerque, NM",
41 "New York, NY",
42 "Charlotte, NC",
43 "Fargo, ND",
44 "Columbus, OH",
45 "Oklahoma City, OK",
46 "Portland, OR",
47 "Philadelphia, PA",
48 "Providence, RI",
49 "Charleston, SC",
50 "Sioux Falls, SD",
51 "Nashville, TN",
52 "Houston, TX",
53 "Salt Lake City, UT",
54 "Burlington, VT",
55 "Richmond, VA",
56 "Seattle, WA",
57 "Charleston, WV",
58 "Milwaukee, WI",
59 "Cheyenne, WY",
60 ],
61 "specialties": [
62 "dermatologist",
63 "mental health clinic",
64 ],
65}
66
67
68run = client.actor("knobby_nudge/clinic-scraper").call(run_input=run_input)
69
70
71print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
72for item in client.dataset(run["defaultDatasetId"]).iterate_items():
73 print(item)
74
75