1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "dog leash",
11 "cat toy",
12 ],
13 "dropshipOnly": True,
14 "includeEnglishTranslation": True,
15 "includeLandedCost": True,
16 "includeCompliance": True,
17 "excludeFoodProducts": True,
18 "includeDescriptionImages": True,
19 "offerIds": [],
20 "mintOnMiss": True,
21 "detailIdentityRotation": False,
22 "skipDetails": False,
23 "proxyConfiguration": {
24 "useApifyProxy": True,
25 "apifyProxyGroups": ["RESIDENTIAL"],
26 "apifyProxyCountry": "CN",
27 },
28}
29
30
31run = client.actor("crawleast/china-pet-supplies-scraper").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38