1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": ["https://www.totalwine.com/wine/c/c0020?&pageSize=24&bv_reviews=4%2B%20Stars&userPrice=10-10000&sort=expert-ratings&aty=1,1,0,0"],
10 "ignore_url_failures": True,
11 "max_items_per_url": 20,
12 "proxy": {
13 "useApifyProxy": True,
14 "apifyProxyGroups": ["RESIDENTIAL"],
15 "apifyProxyCountry": "US",
16 },
17}
18
19
20run = client.actor("stealth_mode/totalwine-product-search-scraper").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27