Giter VIP home page Giter VIP logo

downloader_cluster's Introduction

#downloader_cluster

DESCRIPTION

一个简单的支持多线程,断点续传及分布式的下载器

INSTALL

ubuntu

    git clone https://github.com/ShichaoMa/downloader_cluster.git
    sudo python setup.py install

    or

    sudo pip install downloader-cluster

#USAGE

    ubuntu@dev:~$ downloader -h
    usage: downloader.py [-h] {start,reload} ...

    positional arguments:
      {start,reload}
        start         start download a file.
        reload        continue downlaod a file.

    optional arguments:
      -h, --help      how this help message and exit
    Command 'start'
    usage: downloader.py start [-h] [-s SETTINGS] -u URL [-f FILENAME]

    Command 'reload'
    usage: downloader.py reload [-h] [-s SETTINGS] -u URL [-f FILENAME]

##demo1

# 普通下载
        downloader start -u "https://download.jetbrains.8686c.com/python/pycharm-community-2016.2.tar.gz" -f  test.tar.gz
# 断点续传(服务器需要提供支持)
        downloader reload -u "https://download.jetbrains.8686c.com/python/pycharm-community-2016.2.tar.gz" -f  test.tar.gz

##demo2 分布式下载
向redis队列中发布下载任务
实现自定义分布式下载器
参见test.py

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.