1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "entityType": "beer",
11 "queries": ["hazy ipa"],
12 "breweries": ["Dogfish Head Craft Brewery"],
13 "urls": [
14 "https://untappd.com/b/blue-moon-brewing-company-belgian-white/3839",
15 "https://untappd.com/beer/3839",
16 "https://untappd.com/b/blue-moon-brewing-company-belgian-white/3839?ref=share",
17 "https://untappd.com/b/blue-moon-brewing-company-belgian-white/3839/photos",
18 "https://untappd.com/DogfishBeer",
19 "https://untappd.com/DogfishBeer/beer",
20 "https://untappd.com/brewery/1",
21 "https://untappd.com/w/dogfish-head-craft-brewery/1",
22 "https://untappd.com/v/bowditch-field/932830",
23 "https://untappd.com/beer/top_rated",
24 "https://untappd.com/beer/top_rated?type=belgian-quad",
25 "https://untappd.com/beer/top_rated?country=belgium",
26 "https://untappd.com/beer/top_rated?type=belgian-quad&country=belgium",
27 "https://untappd.com/search?q=hazy+ipa&type=beer",
28 ],
29 "proxy": { "useApifyProxy": True },
30 "incrementalMode": False,
31 "emitUnchanged": False,
32 "emitExpired": False,
33}
34
35
36run = client.actor("abotapi/untappd-scraper").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