Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oieduardorabelo/node-request
Basic app to read a json and downlaod a file, using streams
https://github.com/oieduardorabelo/node-request
Last synced: 10 days ago
JSON representation
Basic app to read a json and downlaod a file, using streams
- Host: GitHub
- URL: https://github.com/oieduardorabelo/node-request
- Owner: oieduardorabelo
- Created: 2015-05-16T02:24:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-01T06:26:42.000Z (over 9 years ago)
- Last Synced: 2024-04-14T19:10:11.797Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Request and download files
Basic app to download all links in a json file
***Recursiveness***
![Using Recursiveness](http://img-9gag-fun.9cache.com/photo/aG9Qyp5_700b.jpg)
### How it work's
First things first, install dependencies:
```
npm install
```And now, you can start passing files for the app, like that:
```
node app.js .json
```### The JSON file
The json file need to have this structure:
```
[{
"url": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Brown_Tree_Frog_2.jpg",
"name": "Awesome frog"
},
{
"url": "http://upload.wikimedia.org/wikipedia/en/7/70/Example.png",
"name": "My Picture"
}]
```
***ps: you can put any kind of media, just need to absolute path***From the json above, the downloaded files will be:
```
00-Awesome-frog.jpg
01-My-Pricture.png
```