1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productUrls": [],
10 "categoryUrls": [
11 "https://www.trendyol.com/en/sr?q=tshirt&countryCode=GR&language=en&storefrontId=19",
12 "https://www.trendyol.com/en/tommy-hilfiger-x-b300?countryCode=GR&language=en&storefrontId=19",
13 "https://www.trendyol.com/en/men-t-shirts-x-g2-c73?countryCode=GR&language=en&storefrontId=19",
14 ],
15 "maxResultsPerScrape": 5,
16 "usePagination": True,
17}
18
19
20run = client.actor("123webdata/trendyol-scraper").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27