Metadata-Version: 2.1
Name: katcr
Version: 2.0.1
Summary: KickassTorrents CLI and Telegram bot
License: GPL-3.0+
Author: David Francos
Author-email: opensource@davidfrancos.net
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: cleo (>=0.7.4,<0.8.0)
Requires-Dist: cutie (>=0.2.2,<0.3.0)
Requires-Dist: pygogo (>=0.12.0,<0.13.0)
Requires-Dist: requests (>=2.22,<3.0)
Requires-Dist: robobrowser (>=0.5.3,<0.6.0)
Requires-Dist: telepot (>=12.7,<13.0)
Requires-Dist: torrentmirror (>=2.0,<3.0)
Requires-Dist: werkzeug (==0.16.1)
Description-Content-Type: text/x-rst

.. image:: http://i.imgur.com/ofx75lO.png

Easily **search torrents** in multiple providers such as KickAssTorrents and
ThePirateBay.


.. image:: https://travis-ci.org/XayOn/katcr.svg?branch=master
    :target: https://travis-ci.org/XayOn/katcr

.. image:: https://coveralls.io/repos/github/XayOn/katcr/badge.svg?branch=master
    :target: https://coveralls.io/github/XayOn/katcr?branch=master

.. image:: https://badge.fury.io/py/katcr.svg
    :target: https://badge.fury.io/py/katcr


Command Line Interface
----------------------

katcr comes with a simple but powerful command line interface

.. image:: /docs/screenshot.gif?raw=True

::

   > poetry run katcr search ...

   USAGE
     katcr search [--pages <...>] [--token [<...>]] [--shortener [<...>]] [--engines <...>] [--interactive [<...>]] [--open [<...>]] <search>

   ARGUMENTS
     <search>               Search term

   OPTIONS
     --pages                Pages to search on search engines (default: "1")
     --token                Token to use on URL shortener as AUTH
     --shortener            URL Shortener
     --engines              Engines (default: "Katcr,ThePirateBay,NyaaSi,Skytorrents")
     --interactive          Allow the user to choose a specific magnet
     --open                 Open selected magnet with xdg-open

   GLOBAL OPTIONS
     -h (--help)            Display this help message
     -q (--quiet)           Do not output any message
     -v (--verbose)         Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug
     -V (--version)         Display this application version
     --ansi                 Force ANSI output
     --no-ansi              Disable ANSI output
     -n (--no-interaction)  Do not ask any interactive question


Installation
------------

This is a python package available on pypi, just run::

    sudo python3 -m pip install katcr


Features
--------

- Display results in a nice utf-8 table
- Optional interactive mode, choose and open torrent with a nice text user interface
- Open torrent directly with your preferred client (via xdg-open)
- Searches on all available engines until it gets results by default.
- Search torrents in:

  + Katcr
  + ThePirateBay
  + Nyaa
  + Skytorrents
  + Digbt
  + `Jackett <https://github.com/Jackett/Jackett>`_


Jackett Support
---------------

You can easily use a `Jackett <https://github.com/Jackett/Jackett>`_ instance
to search on all your configured provider.

This allows you to search on any jackett-supported site (that's about supported
300 trackers).

Jackett is probably the best way to use katcr and katbot, as it has a more
active mantainance of the tracker sites that us.

To enable Jackett use, simply export your jackett URL and TOKEN as variables::

   JACKETT_HOST=http://127.0.0.1:9117 JACKETT_APIKEY=<redacted> poetry run katcr --engines=



KATBot - Kickasstorrents telegram bot
--------------------------------------

Katcr also comes with a telegram bot entry point.
It's a simple bot that replies with search results for each message it gets.

It returns magnet links with provided url shortener for the first page of
results, on the first available search engine.

.. image:: http://i.imgur.com/7FxplBs.gif

::

    Run telegram bot.

        Usage: katcr_bot [options]

        Options:
            --token=<BOT_TOKEN>             Telegram bot token
            --token-file=<FILE>             Telegram bot token file
            --shortener=<URL_SHORTENER>     Url shortener to use
                                            [default: http://shortmag.net]


Notes
------

This project is made with the best of intentions.

For that times you need to search for somethink shared as a torrent on KAT
(I.E, linux images). Logo is based on robot cat by
`Arsenty <https://thenounproject.com/arsenty/>`_

If you like this project, show its appreciation by starring it, if you're using
it and want to write to me personally, feel free to do so at
opensource@davidfrancos.net. If you've got a bug to report, please use the
github ticketing system
Pending things
--------------

* Fix tests
* Add information about seeds/leeches on each torrent
* Add more search engines
* Maybe direct search to the DHT?


