jebaum / pirate-get

A command line interface for The Pirate Bay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pirate-get

pirate-get is a convenient command line tool (inspired by APT) to speed up your trip to the Pirate Bay and get your completely legal torrents more quickly.

Tested on Arch Linux mostly. It should work on any other Linux too. Let me know if it doesn't.
Also tested on OSX (works fine on yosemite)

--local option hasn't been tested recently.

Installation

Make sure you have python 3 installed. Requires colorama for colored output.

Run ./install

Usage

See pirate-get -h for help.

Watch this for an example usage.

Configuration file

You can use a file to override pirate-get's default settings.
Default is $XDG_CONFIG_HOME/pirate-get. If it does not exist then $HOME/.config/pirate-get.

Default config file

These are the default options:

[Save]
directory = $PWD                     ; directory where to save files
magnets = false                      ; save each selected magnet link in a .magnet file
torrents = false                     ; save each selected torrent in a .torrent file

[LocalDB]
enabled = false                      ; use a local copy of the pirate bay database
path = ~/downloads/pirate-get/db     ; path of the database

[Misc]
openCommand =                        ; specify a custom command for opening the magnet
                                     ; ex. myprogram --open %s
                                     ; %s represent the magnet uri

transmission = false                 ; open magnets with transmission-remote client
colors = true                        ; use colored output

Note: Any command line option will override its respective setting in the config file.

Notes

If you want to use a local copy of the Pirate Bay database download a copy here (or wherever the latest version is currently):

http://thepiratebay.se/torrent/8156416

License

pirate-get is licensed under the GNU Affero General Public License version 3 or later.
See the accompanying file COPYING or http://www.gnu.org/licenses/agpl.html.

About

A command line interface for The Pirate Bay

License:GNU Affero General Public License v3.0


Languages

Language:Python 98.4%Language:Shell 1.6%