Skip to content

ytpixelcowboy/batch-image-downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch Image Downloader

Batch download images from JSON files using NodeJS.

Usage

  1. Get started by cloning or downloading this repository.
  2. Create a data.json file within the projects root directory.
  3. Open the index.js file
  4. Modify the variables within the //Editable Content comments
  5. Run the download command npm run download

Demo of data.json

{
  "${your-picture-name}": "${your-picture-link}",
}

Demo of editable code

const getDownloadItem = (key) => {
    return {
        productImage: data[key],
        productId: key
    }
}
const downloadArray = Object.keys(data).map(getDownloadItem);
const totalDownloads = downloadArray.length;

About

Batch download images from JSON files using NodeJS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%