1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 { "url": "https://russanddaughters.com" },
11 { "url": "https://voodoodoughnut.com" },
12 { "url": "https://levainbakery.com" },
13 ],
14 "maxPagesPerDomain": 20,
15 "maxDepth": 2,
16 "maxResults": 50,
17 "prioritizePaths": [
18 "/contact",
19 "/contact-us",
20 "/about",
21 "/about-us",
22 "/team",
23 "/impressum",
24 "/kontakt",
25 ],
26 "sameDomainOnly": True,
27 "extractPhones": True,
28 "extractSocials": True,
29 "phoneCountryHint": "US",
30 "respectRobotsTxt": True,
31 "maxRequestRetries": 3,
32 "proxyConfiguration": { "useApifyProxy": True },
33}
34
35
36run = client.actor("yasaslive/website-contact-details-crawler").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43