1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "shops": ["shopthemasonjar"],
11 "urls": [
12 "https://shopthemasonjar.commentsold.com/",
13 "https://shopthemasonjar.commentsold.com/collections/all-items",
14 "https://shopthemasonjar.commentsold.com/api/products/32291",
15 "https://shopthemasonjar.commentsold.com/live",
16 ],
17 "collections": ["all-items"],
18 "searchQuery": "",
19 "inStockOnly": False,
20 "fetchDetails": True,
21 "includeLive": True,
22 "proxy": { "useApifyProxy": True },
23 "incrementalMode": False,
24 "emitUnchanged": False,
25 "emitExpired": False,
26}
27
28
29run = client.actor("abotapi/commentsold-com-scraper").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36