https://github.com/codewithkyle/batch-image-downloader
Batch download images from JSON files using NodeJS.
https://github.com/codewithkyle/batch-image-downloader
Last synced: 2 months ago
JSON representation
Batch download images from JSON files using NodeJS.
- Host: GitHub
- URL: https://github.com/codewithkyle/batch-image-downloader
- Owner: codewithkyle
- License: mit
- Created: 2020-12-02T13:55:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T10:42:00.000Z (almost 4 years ago)
- Last Synced: 2025-04-07T01:39:30.688Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Batch Image Downloader
Batch download images from JSON files using NodeJS.
## Usage
1. Get started by cloning or downloading this repository.
1. Create a `data.json` file within the projects root directory.
1. Open the `index.js` file
1. Modify the variables within the `//Editable Content` comments
1. Run the download command `npm run download`## Demo of data.json
```json
{
"${your-picture-name}": "${your-picture-link}",
}
```## Demo of editable code
```javascript
const getDownloadItem = (key) => {
return {
productImage: data[key],
productId: key
}
}
const downloadArray = Object.keys(data).map(getDownloadItem);
const totalDownloads = downloadArray.length;
```