Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question