1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "host",
11 "vacation rental",
12 ],
13 "location": "",
14 "customDomains": [
15 "@gmail.com",
16 "@yahoo.com",
17 "@outlook.com",
18 "@hotmail.com",
19 "@icloud.com",
20 "@aol.com",
21 "@protonmail.com",
22 "@live.com",
23 "@gmx.com",
24 "@mail.com",
25 "@yandex.com",
26 "@zoho.com",
27 ],
28 "countryCode": "",
29 "queryModifiers": [
30 "email",
31 "contact",
32 "bookings",
33 "direct booking",
34 "property manager",
35 ],
36}
37
38
39run = client.actor("leads-scraper/airbnb-email-scraper").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46