1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "queries": ["coffee"],
11 "slugKeywords": ["paper towels"],
12 "categoryKeywords": ["paper towels"],
13 "urls": [
14 "https://www.samsclub.com/ip/Bounty-Select-A-Size-2-Ply-Paper-Towels-12-Rolls-110-sheets-roll/18040450426",
15 "https://www.samsclub.com/browse/paper-towels/1110179",
16 "https://www.samsclub.com/browse/gluten-free/710125?facet=Brand%3AQuaker",
17 "https://www.samsclub.com/c/kp/tires-for-suvs",
18 "https://www.samsclub.com/cp/housewares/1373",
19 "https://www.samsclub.com/sitemap_products_1.xml",
20 ],
21 "onSaleOnly": False,
22 "skipSponsored": False,
23 "fetchDetails": False,
24 "fetchReviews": False,
25 "includeReviewImages": False,
26 "fixedClub": False,
27 "proxy": { "useApifyProxy": True },
28 "incrementalMode": False,
29 "emitUnchanged": False,
30 "emitExpired": False,
31 "watchStock": False,
32 "compactUpdates": False,
33}
34
35
36run = client.actor("abotapi/samsclub-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