1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "states": ["CA"],
11 "listingStatus": "active",
12 "sortBy": "default",
13 "urls": [
14 "https://www.auction.com/residential/CA/active_lt",
15 "https://www.auction.com/residential/active_lt/",
16 "https://www.auction.com/residential/CA/Los-Angeles_ct/active_lt",
17 "https://www.auction.com/residential/90210_zp/active_lt",
18 "https://www.auction.com/residential/CA/active_lt/2_cp",
19 "https://www.auction.com/residential/CA/active_lt/single-family_pt/bank-owned_at",
20 "https://www.auction.com/residential/CA/active_lt/online_af",
21 "https://www.auction.com/residential/CA/active_lt/3_bd/2_bt/500_any_sqft",
22 "https://www.auction.com/residential/CA/active_lt/auction_date_order,resi_sort_v2_st",
23 "https://auction.com/residential/TX/active_lt",
24 "https://www.auction.com/residential/CA/sold_lt",
25 ],
26 "maxPages": 0,
27 "maxListings": 20,
28 "proxy": { "useApifyProxy": True },
29 "ignoreFieldsForChanges": [],
30}
31
32
33run = client.actor("abotapi/auction-com-scraper").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40