1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": ["https://www.alibaba.com/trade/search?fsb=y&IndexArea=product_en&categoryId=127734135&has4Tab=true&keywords=Men%27s+Jackets&originKeywords=Men%27s+Jackets&productId=1600981574830&tab=all&page=2&spm=a2700.galleryofferlist.pagination.0&intentionId=522b0004261a4ea2b7ac425ffc77130f"],
10 "products": ["https://www.alibaba.com/product-detail/Men-s-Winter-Quilted-Jacket-Reversible_1601892678252.html?spm=a2700.galleryofferlist.normal_offer.d_title.7d2513a09DKamp&priceId=344ef793372642878a93df4553370b87"],
11}
12
13
14run = client.actor("saswave/alibaba-product-scraper").call(run_input=run_input)
15
16
17print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
18for item in client.dataset(run.default_dataset_id).iterate_items():
19 print(item)
20
21