1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 "https://www.etsy.com/listing/743657804/sheepskin-slippers-wool-slippers-fur?ga_order=most_relevant&ga_search_type=all&ga_view_type=gallery&ga_search_query=&ref=sc_gallery-5-1&plkey=89e47f49c28602795b44fc71559e2839056339d8%3A743657804&frs=1",
11 "https://www.etsy.com/c/clothing-and-shoes?ref=catnav-10923",
12 "https://www.etsy.com/search?q=apple%20watch",
13 "https://www.etsy.com/shop/PetiteFraise?ref=simple-shop-header-name&listing_id=490831663&page=2#items",
14 ],
15 "maxItems": 10,
16 "endPage": 1,
17 "extendOutputFunction": """($) => {
18 const result = {};
19 // Uncomment to add a title to the output
20 // result.title = $('title').text().trim();
21
22 return result;
23}""",
24 "customMapFunction": "(object) => { return {...object} }",
25 "proxy": {
26 "useApifyProxy": True,
27 "apifyProxyGroups": ["RESIDENTIAL"],
28 },
29}
30
31
32run = client.actor("epctex/etsy-scraper").call(run_input=run_input)
33
34
35print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
36for item in client.dataset(run["defaultDatasetId"]).iterate_items():
37 print(item)
38
39