Download Images From Dataset avatar
Download Images From Dataset
Try for free

No credit card required

View all Actors
Download Images From Dataset

Download Images From Dataset

zuzka/download-images-from-dataset
Try for free

No credit card required

Download actual pictures from scraped dataset based on the image urls. The actor creates a zip file for you to download with one click.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "datasetId": "BJ1QEU6wepLqFPerV",
8  "pathToImageUrls": "image",
9  "limit": 10,
10  "fileNameFunction": "({url, md5}) => md5(url)",
11  "proxyConfiguration": {
12    "useApifyProxy": true
13  }
14}
15EOF
16
17# Run the Actor using an HTTP API
18# See the full API reference at https://docs.apify.com/api/v2
19curl "https://api.apify.com/v2/acts/zuzka~download-images-from-dataset/runs?token=$API_TOKEN" \
20  -X POST \
21  -d @input.json \
22  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 15 monthly users
  • 8 stars
  • 99.1% runs succeeded
  • Created in Feb 2023
  • Modified 5 months ago