1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "URLs": [
12 "https://www.etsy.com/il-en/listing/1676375413/silk-prom-dress-sewing-pattern-pdf-sizes?ga_order=most_relevant&ga_search_type=all&ga_view_type=gallery&ga_search_query=&ref=sr_gallery-1-9&dd=1&organic_search_click=1?ref=test_actor",
13 "https://www.etsy.com/il-en/listing/1198355822/women-floral-cotton-dress-half-sleeves?ga_order=most_relevant&ga_search_type=all&ga_view_type=gallery&ga_search_query=&ref=sc_gallery-1-1&pro=1&frs=1&plkey=a2d84fcc15e4fc7d66f2e1b925ca57854d7198a8%3A1198355822?ref=test_actor"
14 ]
15};
16
17
18const run = await client.actor("sellez/omni-etsy-scraper-pay-per-request").call(input);
19
20
21console.log('Results from dataset');
22console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
23const { items } = await client.dataset(run.defaultDatasetId).listItems();
24items.forEach((item) => {
25 console.dir(item);
26});
27
28