1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Paris"],
11 "urls": [
12 "https://www.seloger.com/classified-search?distributionTypes=Buy&estateTypes=House,Apartment&locations=AD08FR31096",
13 "https://www.seloger.com/classified-search?distributionTypes=Rent&estateTypes=Apartment&locations=AD08FR31096",
14 "https://www.seloger.com/classified-search?distributionTypes=Buy&estateTypes=Apartment&locations=AD08FR31096&projectTypes=Resale",
15 "https://www.seloger.com/classified-search?distributionTypes=Buy&estateTypes=House,Apartment&locations=AD08FR31096&page=2",
16 "https://www.seloger.com/classified-search?distributionTypes=Buy&estateTypes=Apartment&locations=AD08FR31096&priceMax=500000&numberOfRoomsMin=2&order=PriceAsc",
17 "https://www.seloger.com/classified-search?distributionTypes=Buy&estateTypes=Apartment&projectTypes=Stock,Planned,Building&locations=AD08FR31096",
18 ],
19 "proxy": {
20 "useApifyProxy": True,
21 "apifyProxyGroups": ["RESIDENTIAL"],
22 },
23 "incrementalMode": False,
24 "emitUnchanged": False,
25 "emitExpired": False,
26 "ignoreFieldsForChanges": [],
27}
28
29
30run = client.actor("abotapi/seloger-france-scraper").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37