1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sourceMode": "browseUrls",
10 "startUrls": [{ "url": "https://www.mourjan.com/ae/apartments/rental/en/" }],
11 "listingUrls": [],
12 "keywords": [],
13 "vertical": "all",
14 "countries": [],
15 "cities": [],
16 "propertyType": "",
17 "make": "",
18 "model": "",
19 "jobTitle": "",
20 "employer": "",
21 "employmentType": "",
22 "serviceType": "",
23 "location": "",
24 "blockedResponsePolicy": "failSource",
25 "detailLevel": "listingOnly",
26 "includeDescription": True,
27 "includeImages": True,
28 "includeContacts": False,
29 "maxItems": 50,
30 "maxPagesPerSource": 3,
31 "maxDetailPages": 0,
32 "runMode": "snapshot",
33 "monitorKey": "",
34 "emitUnchanged": False,
35 "inactiveAfterDays": 14,
36 "maxConcurrency": 2,
37 "requestDelayMs": 500,
38}
39
40
41run = client.actor("getascraper/mourjan-scraper").call(run_input=run_input)
42
43
44print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48