Giter VIP home page Giter VIP logo

downloader's Introduction

downloader

Take in a list of web addresses, and download the files to a target location. Location can be either a local filesystem, or in HDFS.

Installation

There will be a compiled binary included in the repository, downloader, that can be used out of the box. However, if you wish to compile the package yourself, you will need to use the following steps.

  1. Download Go and follow the installation instructions

  2. Set up your install

  3. Clone the downloader repository, and change into the directory

  4. Compile the binary by running the following command:

    go build

  5. The downloader binary will have been generated

Usage

If ran without any arguments, the downloader command will display the help message. The same as if it was ran with downloader -h, downloader --help, and downloader help.

Running downloader -v or downloader --version will display the version.

There are two subcommands:

  • local - for when you want to download files into a local directory
  • hdfs - for when you want to download files directly into HDFS

Both of the subcommands make use of the same flags:

Short Flag Long Flag Description
-c --concurrent The number of concurrent downloads (default 1)
-d --destination The desired destination to save the downloads
-f --file The file containing list of URLs
-h --help The help message

Known Limitations

There may be issues downloading files directly to HDFS in a kerberized environment. This is something that will be worked on, and updated accordingly.

Issues

For any issues that are found, please raise an issue on Github.

downloader's People

Contributors

galzzly avatar

Watchers

 avatar  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.