2014-06-06 04:41:44 +02:00
# pirate-get
2016-09-04 00:43:06 +02:00
[![Circle CI ](https://img.shields.io/circleci/project/vikstrous/pirate-get/master.svg )](https://circleci.com/gh/vikstrous/pirate-get/tree/master) [![Coverage Status ](https://img.shields.io/coveralls/vikstrous/pirate-get/master.svg )](https://coveralls.io/github/vikstrous/pirate-get?branch=master) [![Code Climate ](https://img.shields.io/codeclimate/github/vikstrous/pirate-get.svg )](https://codeclimate.com/github/vikstrous/pirate-get) [![Codacy Badge ](https://api.codacy.com/project/badge/8e5fc16afd23496dbcf74db710d1ef2c )](https://www.codacy.com/app/me_29/pirate-get) [![Gemnasium ](https://img.shields.io/gemnasium/vikstrous/pirate-get.svg )](https://gemnasium.com/vikstrous/pirate-get) [![License ](https://img.shields.io/pypi/l/pirate-get.svg )](https://raw.githubusercontent.com/vikstrous/pirate-get/master/LICENSE) [![Version ](https://img.shields.io/pypi/v/pirate-get.svg )](https://pypi.python.org/pypi/pirate-get/) [![Downloads ](https://img.shields.io/pypi/dm/pirate-get.svg )](https://pypi.python.org/pypi/pirate-get/)
2015-09-09 05:06:20 +02:00
2013-08-31 03:02:07 +02:00
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.
2012-11-16 08:52:09 +01:00
2014-06-06 04:41:44 +02:00
## Installation
2016-02-05 07:21:47 +01:00
Make sure you have python 3.4 and pip installed. On Ubuntu 14.04 you may also need to install the libxslt1-dev and libxml2-dev packages.
2012-11-16 08:52:09 +01:00
2015-09-12 08:35:21 +02:00
Run `pip3 install pirate-get`
2014-05-12 06:22:28 +02:00
2014-06-06 04:41:44 +02:00
## Usage
2015-07-20 05:23:43 +02:00
2015-09-12 08:35:21 +02:00
To search use `pirate-get [search term]` .
2015-07-20 05:23:43 +02:00
2015-09-12 08:35:21 +02:00
See `pirate-get -h` for more options.
2014-12-04 23:12:35 +01:00
Watch [this ](http://showterm.io/d6f7a0c2a5de1da9ea317 ) for an example usage.
2013-02-21 21:24:54 +01:00
2014-06-06 04:41:44 +02:00
## Configuration file
2018-05-28 07:46:14 +02:00
You can use a file to override pirate-get's default settings.
2015-03-26 00:14:22 +01:00
Default is `$XDG_CONFIG_HOME/pirate-get` .
If it does not exist then `$HOME/.config/pirate-get` .
2014-06-06 04:41:44 +02:00
2015-03-26 00:14:22 +01:00
### Default config file
2017-02-28 15:01:43 +01:00
Here the available options and their behaviors are when unset:
2014-06-06 04:41:44 +02:00
```INI
2015-03-26 00:14:22 +01:00
[Save]
2015-07-16 01:00:16 +02:00
; directory where to save files
directory = $PWD
; save each selected magnet link in a .magnet file
magnets = false
; save each selected torrent in a .torrent file
2018-05-28 07:46:14 +02:00
torrents = false
2015-03-26 00:14:22 +01:00
[LocalDB]
2018-05-28 07:46:14 +02:00
; use a local copy of the csv formatted pirate bay database
enabled = false
2015-07-16 01:00:16 +02:00
2018-05-28 07:46:14 +02:00
; path of the database
2015-07-16 01:00:16 +02:00
path = ~/downloads/pirate-get/db
2015-03-26 00:14:22 +01:00
2020-09-19 18:04:18 +02:00
[Search]
; maximum number of results to show
total-results = 50
2015-03-26 00:14:22 +01:00
[Misc]
2015-07-16 01:00:16 +02:00
; specify a custom command for opening the magnet
; ex. myprogram --open %s
; %s represent the magnet uri
2018-05-28 07:46:14 +02:00
openCommand =
2015-03-26 00:14:22 +01:00
2015-07-16 01:00:16 +02:00
; open magnets with transmission-remote client
transmission = false
2018-05-28 07:46:14 +02:00
; set to username:password if needed
transmission-auth =
; set to the port number if needed
transmission-port =
2015-07-16 01:00:16 +02:00
; use colored output
colors = true
2016-09-03 14:53:00 +02:00
; the pirate bay mirror(s) to use:
; one or more space separated URLs
mirror = http://thepiratebay.org
2014-06-06 04:41:44 +02:00
```
2018-05-28 07:46:14 +02:00
Note:
Any command line option will override its respective setting in the config file.
2015-07-16 01:00:16 +02:00
2015-03-26 00:14:22 +01:00
2015-09-12 08:35:21 +02:00
## Local Database
2013-02-21 21:24:54 +01:00
If you want to use a local copy of the Pirate Bay database download a copy here (or wherever the latest version is currently):
2018-05-28 07:46:14 +02:00
https://thepiratebay.org/static/dump/csv/
2014-10-28 07:48:02 +01:00
2014-10-28 07:48:38 +01:00
## License
2018-05-28 07:46:14 +02:00
pirate-get is licensed under the GNU Affero General Public License version 3 or later.
2015-09-12 08:35:21 +02:00
See the accompanying file LICENSE or http://www.gnu.org/licenses/agpl.html.