1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://turo.com/us/en/search?country=US&defaultZoomLevel=11&delivery=true&deliveryLocationType=airport&endDate=08%2F12%2F2023&endTime=10%3A00&isMapSearch=false&itemsPerPage=200&latitude=42.36561&location=BOS%20-%20Boston%20Logan%20International%20Airport&locationType=AIRPORT&longitude=-71.00956&pickupType=ALL&placeId=ChIJN0na1RRw44kRRFEtH8OUkww&sortType=RELEVANCE&startDate=08%2F09%2F2023&startTime=10%3A00&useDefaultMaximumDistance=true" }],
10 "queries": ["Boston, MA"],
11 "limit": 15,
12 "minConcurrency": 1,
13 "maxConcurrency": 3,
14 "maxRequestRetries": 2,
15 "maxRequestsPerCrawl": 1000,
16 "handlePageTimeoutSecs": 60,
17 "proxySettings": { "useApifyProxy": True },
18}
19
20
21run = client.actor("genial_candlestand/turo-scraper").call(run_input=run_input)
22
23
24print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
25for item in client.dataset(run["defaultDatasetId"]).iterate_items():
26 print(item)
27
28