Dataset Image Downloader & Uploader avatar

Dataset Image Downloader & Uploader

Try for free

No credit card required

Go to Store
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.

Do you want to learn more about this Actor?

Get a demo
JY

it says file is empty

Closed

jaycation opened this issue
3 months ago

i think im doing something wrong, as it says its empty in my computer when i download the zip file

JY

jaycation

3 months ago

im trying to download all images from this pinterest URL https://www.pinterest.com/ruthelizabethlindvall/real-food/ i used the pinterest scraper from apify, not sure what im doing wrong , thank you sorry for dumb questions

JY

jaycation

3 months ago

but when i check the file from pinterest scraper it shows the URLs are downloaded

lukaskrivka avatar

Hello,

The "Path to image URLs" input is wrong, it needs to point to the image URL, not the page URL. So it should be "image.url".

See here the correct run https://console.apify.com/view/runs/lTXGROGnmVtkaz3R7

JY

jaycation

3 months ago

thank you!!

JY

jaycation

3 months ago

for this run id S4MyLA4EhZX2D7bRR for path to image URLS, i used: slideshowImageLinks[].downloadLink but its not downloading anything, is that the path to image URL im supposed to be using? i use tiktok 95% of the time, so whatever the path to image URL is, do i just repeat it everytime i want to Download from tiktok using this actor? thank you so much for your help, i sincerely appreciate it!

lukaskrivka avatar

Hello,

The syntax slideshowImageLinks[].downloadLink doesn't work. I don't think there is a way to get it like this. You need to use the transform function. See input of the run I shared below, you can copy the

preDownloadFunction": "({ data }) => data.map((item) => {\n    if (Array.isArray(item.slideshowImageLinks)) {\n        item.images = item.slideshowImageLinks.map((img) => img.downloadLink)\n    } else {\n        item.images = []\n    }\n    return item\n})\n"

https://console.apify.com/view/runs/Cc25PiUgXGYzbDaUP

JY

jaycation

3 months ago

thank you SO MUCH!! so for for tiktok, do input in "path to image url" , the input that you sent me below? preDownloadFunction": "({ data }) => data.map((item) => {\n if (Array.isArray(item.slideshowImageLinks)) {\n item.images = item.slideshowImageLinks.map((img) => img.downloadLink)\n } else {\n item.images = []\n }\n return item\n})\n"

JY

jaycation

3 months ago

or do i put it in the "filename funtion" section? and do i leave "path to image URL" blank?

lukaskrivka avatar

Just copy paste the JSON input from the run I sent you https://console.apify.com/view/runs/Cc25PiUgXGYzbDaUP into your task JSON input and only change the datasetId as you need

JY

jaycation

3 months ago

i really, really appreciate your help!! i was going crazy haha, you are a lifesaver!!! thank you so much

JY

jaycation

3 months ago

im so sorry, im having a hard time trying to find the image path to URL for this run ID DRaWhD0UGDngJLkv4 ive used "images.*.url" but it doesnt work, i want to download the original image resolution, so i also used "pathToImageUrls": "images.orig.url" but its not working, ive tried looking in help section for a while , im not sure what im doing wrong

Developer
Maintained by Apify

Actor Metrics

  • 36 monthly users

  • 13 stars

  • >99% runs succeeded

  • 2 days response time

  • Created in Nov 2018

  • Modified 23 days ago