Python library to expose torrentmirror as a command and python library.
You can invoke torrentmirror command to have a nice tabulated list of mirrors in your terminal
TorrentMirror. Usage: torrentmirror [<torrent_mirror_url>]
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
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
}
]
}