@gerardino/picture-fetcher v0.1.3-beta
picture-fetcher-js
Fetches a set of pictures from a provided list of URLs.
Given a list of URLs stored in a source file, picture-fetcher-js
will parse this list and fetch each URL into a target folder.
The list can be any UTF-8 plain text file with the URLs separated by commas (,) or new lines. If the URL is invalid or not a picture (determined by the content type of the response), the file will not be fetched and an error message will be shown.
The output path must be a folder that the user has access to write on. If the folder does not exist but the user has permissions to create it then picture-fetcher-js
will create it.
Overwritting: By the default picture-fetcher-js
will not overwrite existing files. To intentionally overwrite use the flag -r
or --replace
.
Verbose output: To get more details on what actions are being performed you can use the verbose flag -v
or --verbose
.
How to run
- Clone by
git clone git@github.com:gerardino/picture-fetcher-js.git
cd picture-fetcher-js
npm install
npx ts-node ./src/index.ts [options] "path/to/source/file"