1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "locations": [
10 "Los Angeles, CA",
11 "New York, NY",
12 "Miami, FL",
13 "San Francisco, CA",
14 "Chicago, IL",
15 "Las Vegas, NV",
16 "Houston, TX",
17 "Phoenix, AZ",
18 "Seattle, WA",
19 "Denver, CO",
20 "Atlanta, GA",
21 "Orlando, FL",
22 "San Diego, CA",
23 "Dallas, TX",
24 "Boston, MA",
25 ],
26 "maxResults": 50,
27 "proxyConfiguration": {
28 "useApifyProxy": True,
29 "apifyProxyGroups": ["RESIDENTIAL"],
30 "apifyProxyCountry": "US",
31 },
32}
33
34
35run = client.actor("thirdwatch/turo-scraper").call(run_input=run_input)
36
37
38print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
39for item in client.dataset(run["defaultDatasetId"]).iterate_items():
40 print(item)
41
42