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.

Do you want to learn more about this Actor?

Get a demo

You can access the Dataset Image Downloader & Uploader programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1echo '{
2  "pathToImageUrls": "images",
3  "fileNameFunction": "({url, md5}) => md5(url)",
4  "uploadTo": "zip-file",
5  "preDownloadFunction": "/* Example: We get rid of the items with price 0\\n({ data }) => data.filter((item) => item.price > 0)\\n*/",
6  "postDownloadFunction": "/* Example: We remove items without any successfully uploaded images.\\n We also remove any image URLs that were not uploaded\\n \\n ({ data, state }) => {\\n    return data.reduce((newData, item) => {\\n        const downloadedImages = item.images.filter((imageUrl) => {\\n            return state[imageUrl] && state[imageUrl].imageUploaded;\\n        });\\n        \\n        if (downloadedImages.length === 0) {\\n            return newData;\\n        }\\n        \\n        return newData.concat({ ...item, images: downloadedImages });\\n    }, []);\\n}\\n*/",
7  "imageCheckType": "content-type",
8  "proxyConfiguration": {
9    "useApifyProxy": true
10  }
11}' |
12apify call lukaskrivka/images-download-upload --silent --output-dataset

Dataset Image Downloader & Uploader API through CLI

The Apify CLI is the official tool that allows you to use Dataset Image Downloader & Uploader locally, providing convenience functions and automatic retries on errors.

Install the Apify CLI

1npm i -g apify-cli
2apify login

Other API clients include:

Developer
Maintained by Apify
Actor metrics
  • 29 monthly users
  • 11 stars
  • 98.2% runs succeeded
  • 2 days response time
  • Created in Nov 2018
  • Modified 3 months ago