Skip to main content

TorrentMirror API and CLI interface

Project description

Python library to expose torrentmirror as a command and python library.

:tv: torrentmirror - TorrentMirror CLI Interface

You can invoke torrentmirror command to have a nice tabulated list of mirrors in your terminal

http://i.imgur.com/HdY0NIl.png

:star: Usage

TorrentMirror.

    Usage: torrentmirror [<torrent_mirror_url>]

:star: Installation

This is a python package available on pypi.

With python3.8 installed just execute

pip3.8 install torrentmirror

If it asks about permissions and you don’t know what to do, you should probably read Jamie Matthews’s article about virtualenvs

:notebook: Library Usage

TorrentMirror exposes a simple get_proxies method

get_proxies(url="https://www.torrentmirror.net/", renew=False)

It returns a dict in the form

{
  "site_name": [
    {
      "link": "http://foo.com",
      "status": "ONLINE",
      "percentage": 40
    },
    {
      "link": "http://foo.com",
      "status": "ONLINE",
      "percentage": 40
    }
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torrentmirror-2.0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

torrentmirror-2.0.3-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page