C
C
chersanya2013-06-15 20:25:26
Python
chersanya, 2013-06-15 20:25:26

Downloading torrents in Python?

Recently I needed to download some files from torrents in a Python project, and the question arose of what to use for this. There are bindings to libtorrent (python-libtorrent), but the documentation for this could not be found and it is not clear how to do fairly simple and important things (in particular, not all files must be downloaded, but selectively). There was a certain pip package pypi.python.org/pypi/BitTorrent/3.3 , but it is no longer available, as I understand it.
Who uses/used what for such purposes? What are the general options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Tyslyatsky, 2013-06-16
@tbicr

There is a client written in deluge python , I don’t know how well it is written there and what libraries are used, but you can try to look.

A
Alexey Akulovich, 2013-06-15
@AterCattus

I myself used rasterbar bindings . But yes, it’s tight with the documentation there, I figured it out myself, mainly from C sources.
As far as I remember, you can configure the “non-downloadability” of a file by setting a zero priority for the torrent handle by getting, modifying and setting back an array of ints of these same priorities. Or through setting a priority for a separate file, but I don’t remember that anymore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question