1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Austin, TX"],
11 "listingInputs": [
12 "https://www.padmapper.com/apartments/austin-tx",
13 "https://www.padmapper.com/apartments/toronto-on",
14 "https://www.padmapper.com/apartments/austin-tx?max-price=2000",
15 "https://www.padmapper.com/apartments/austin-tx?property-categories=house",
16 "https://www.padmapper.com/apartments/austin-tx?page=2",
17 "https://www.padmapper.com/apartments/austin-tx/2-beds",
18 "https://www.padmapper.com/apartments/austin-tx/pet-friendly",
19 "https://www.padmapper.com/apartments/austin-tx/under-1500",
20 "https://www.padmapper.com/rentals/58574913",
21 "https://www.padmapper.com/buildings/p12116/waller-creekside-apartments-at-105-w-51st-st-austin-tx-78751",
22 "https://www.padmapper.com/buildings/1717500/blueground-san-francisco-apartments-at-149-san-francisco-new-montgomery-st-san-francisco-ca-94105",
23 ],
24 "urls": [
25 "https://www.padmapper.com/apartments/austin-tx",
26 "https://www.padmapper.com/apartments/toronto-on",
27 "https://www.padmapper.com/apartments/austin-tx?max-price=2000",
28 "https://www.padmapper.com/apartments/austin-tx?property-categories=house",
29 "https://www.padmapper.com/apartments/austin-tx?page=2",
30 "https://www.padmapper.com/apartments/austin-tx/2-beds",
31 "https://www.padmapper.com/apartments/austin-tx/pet-friendly",
32 "https://www.padmapper.com/apartments/austin-tx/under-1500",
33 "https://www.padmapper.com/rentals/58574913",
34 "https://www.padmapper.com/buildings/p12116/waller-creekside-apartments-at-105-w-51st-st-austin-tx-78751",
35 "https://www.padmapper.com/buildings/1717500/blueground-san-francisco-apartments-at-149-san-francisco-new-montgomery-st-san-francisco-ca-94105",
36 ],
37 "maxItems": 20,
38 "proxyConfiguration": {
39 "useApifyProxy": True,
40 "apifyProxyGroups": ["RESIDENTIAL"],
41 },
42 "incrementalMode": False,
43 "emitUnchanged": False,
44 "emitExpired": False,
45 "maxNotifyListings": 50,
46}
47
48
49run = client.actor("abotapi/padmapper-rental-listings-scraper").call(run_input=run_input)
50
51
52print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
53for item in client.dataset(run.default_dataset_id).iterate_items():
54 print(item)
55
56