1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchQueries": ["toothpaste"],
11 "sortBy": "relevance",
12 "urls": [
13 "https://www.walgreens.com/store/store/category/productlist.jsp?N=20003053",
14 "https://www.walgreens.com/store/store/category/productlist.jsp?N=20003053&No=72",
15 "https://walgreens.com/store/store/category/productlist.jsp?N=20003053",
16 ],
17 "maxItems": 20,
18 "proxy": { "useApifyProxy": False },
19 "changeScope": "all",
20 "ignoreFieldsForChanges": [],
21}
22
23
24run = client.actor("abotapi/walgreens-com").call(run_input=run_input)
25
26
27print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31