1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "categories": ["restaurant"],
11 "locations": ["wien"],
12 "urls": [
13 "https://www.herold.at/gelbe-seiten/wien/restaurant/",
14 "https://www.herold.at/gelbe-seiten/restaurant/",
15 "https://www.herold.at/gelbe-seiten/wien/restaurant/seite/2/",
16 "https://www.herold.at/gelbe-seiten/k%C3%A4rnten/restaurant/",
17 "https://www.herold.at/gelbe-seiten/wien/bierlokale-pubs/",
18 "https://www.herold.at/gelbe-seiten/wien/4F7QT/kfc/",
19 "https://www.herold.at/gelbe-seiten/firmen-az/a/",
20 ],
21 "proxy": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 "apifyProxyCountry": "AT",
25 },
26 "ignoreFieldsForChanges": [],
27}
28
29
30run = client.actor("abotapi/herold-at-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