1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://shopeekh.com/collections/12453606",
11 "https://shopeekh.com/collections/12453606?page=1",
12 "https://shopeekh.com/m/Shopee-Beauty",
13 "https://shopeekh.com/api/v4/microsite/get_products_for_collection_landing_page?by=relevancy&card_set_name=Microsite%20ATC%20Card&collection_id=12453606&item_order=0&limit=60&match_id=12453606&need_customised_item_card=true&newest=0&offset=0&order=desc",
14 "https://shopeekh.com/api/v4/pagebuilder/get_csr_page?page_url=Shopee-Beauty&platform=4×tamp=0",
15 ],
16 "sortBy": "relevance",
17 "proxy": { "useApifyProxy": True },
18 "ignoreFieldsForChanges": [],
19}
20
21
22run = client.actor("abotapi/shopee-collection-products").call(run_input=run_input)
23
24
25print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
26for item in client.dataset(run.default_dataset_id).iterate_items():
27 print(item)
28
29