Code Monkey home page Code Monkey logo

urls-downloader's Introduction

urls-downloader

A simple generic URL(s) downloader script using streams. Using got under the hood.

Installation

Download or clone this repository, then run the following command in the directory where you extracted or cloned the repository.

npm install

Usage

Edit the urls.txt file and add the URLs you want to download and then run main.js with node. (i.e. node main.js)

The format for urls.txt is in the pattern of one URL per line, optionally the url can be followed a pipe | and the filename you want to save the file as.

if no pipe is specified then the filename will be the last part of the url.

e.g. https://www.domain.com/path/to/filename.txt will be saved as filename.txt in the current working directory, while https://www.domain.com/path/to/filename.txt|foo.txt will be saved as foo.txt in the current working directory.

Options

This script is using got for downloading the files, so you can use any of the options that are supported by got.

Copy options.template.json5 to options.json5 and set/add the options you want to use with got.

Since JSON5 is used, you can add comments to the file and conform to any valid JSON5 rules.

The urls.txt file

Any lines which do not start with https will be ignored. so comments can be included with any or no prefix.

urls-downloader's People

Contributors

topaz1008 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.