Code Monkey home page Code Monkey logo

do-torrent-downloader's Introduction

DigitalOcean torrent downloader

Program to download torrents using qbittorrent on a droplet on Digitalocean and Rsync the files via SSH to the local disk.

Note: I built this program to download legal torrents to a machine that is behind a firewall preventing torrent traffic. This program can howwever download any torrent but the user needs to be careful and know whether they are legally allowed to download the torrents they are downloading.

Prerequisites

  • DigitalOcean's Personal Access Token for API access. You can manage them here
  • Custom image on DigitalOcean with qbittorrent-nox installed.
  • SSH access to the droplet usign a key file that is not password protected. (Will support password protected files soon in later versions.)
  • rsync program installed on the host machine.

Installation

  • Download the latest release (1.1.0)
    bash -c "`curl -sL https://raw.githubusercontent.com/tsrivishnu/DO-torrent-downloader/v1.1.0/download.sh`"
    
  • Make the do-torrent-downloader.yml from the example file and update the configuration to match yours.
    curl -L -o do-torrent-downloader.yml "https://raw.githubusercontent.com/tsrivishnu/DO-torrent-downloader/v1.1.0/do-torrent-downloader.example.yml" && \
    cp do-torrent-downloader.yml $HOME/do-torrent-downloader.yml

    The script looks for the configuration file in the current working directory or the user's home directory. You can place the file in any of the locations.

Build from source code.

  • Clone this repository.
  • Get the dependencies
    $ cd do_torrent_downloader
    $ go get ./...
  • Build
    # From within the root of the project.
    $ go build main.go do_torrent_downloader

Usage

To download using magnet links

$ ./do-torrent-downloader -m "<your-torrent-1-magnet-link" -m "<your-torrent-2-magnet-link"

This above will start a new droplet from the image that is specified in the configuration file, starts the torrent client, waits till the downloads are completed, stops the torrent client and rsyncs the files to the local machine.

Resume a failed copy to local

If in case the program failed or the copy didn't finish. If your droplet is still running, you can resume the whole process by passing the droplet's public IP to the script.

$ ./do-torrent-downloader -ip xxx.xxx.xxx.xxx

Add a torrent to already running instance.

Not supported yet. Soon will add support for this as well.

Ruby version (discontinued)

Looking for the discontinued ruby version of this project? Its moved to the ruby branch in the git repository.

do-torrent-downloader's People

Contributors

tsrivishnu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

famelite

do-torrent-downloader's Issues

Ability to pass droplet size

It would be nice to be able to pass the droplet like for a specific run overriding the value set in the configuration yams.

Something like: -droplet.size and -dp.s

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.