Dataset Image Downloader & Uploader avatar
Dataset Image Downloader & Uploader
Try for free

No credit card required

View all Actors
Dataset Image Downloader & Uploader

Dataset Image Downloader & Uploader

lukaskrivka/images-download-upload
Try for free

No credit card required

Download image files from image URLs in your datasets and save them to a Zip file, Key-Value store, or directly your AWS S3 bucket.

User avatar

image position in array

Closed

webiodigital opened this issue
4 months ago

I have multiple image arrays within input dataset (dataset is result of cheerio scraper, which scrapes multiple pages and gets links of multiple images from each page). Using "Dataset Image Download & Uploader" I would like to download all the images, while the output name of the image should be "item.id_position-of-image-within-its-array". Is this possible to achieve somehow? I mean to define "position of image within its array"?

By using "${state[url].imageIndex}" I am able to achieve the output image name "item.id_${state[url].imageIndex}", but ${state[url].imageIndex} considers all images being within one array

Example of file name I would like to achieve: 26550_01.jpg, 26550_02.jpg, then 26551_01.jpg, 26551_02.jpg And I am only able to get: 26550_01.jpg, 26550_02.jpg, 26551_03.jpg, 26551_04.jpg

If I am correct I need to define imageIndex within itemIndex. Is that possible?

User avatar

Hi, thanks for reaching out, we'll look into it and let you know what can be done.

User avatar

Hello,

Sorry for being so late, I see you already resolved the issue on your own.

Better late than never, I added indexInArrray field to the Filename function.

Developer
Maintained by Apify
Actor metrics
  • 17 monthly users
  • 68.4% runs succeeded
  • 7.7 days response time
  • Created in Nov 2018
  • Modified about 2 months ago