F
F
fantom_ask2020-09-14 18:29:42
Python
fantom_ask, 2020-09-14 18:29:42

How to create a torrent file?

I want to create a new torrent file, save it as a link, and then start downloading in uTorrent.
Are there modules for python3 with clear and easy documentation. without extra coding.
About as simple

import Torrent

my_torrent = Torrent()
my_torrent.add("C:\test.txt")
my_torrent.save("C:\test.torrent")
link = get_link("C:\test.torrent")
# вернет магнитную ссылку
print(link)
link.save("C:\test2.torrent")


So that it works both with the absolute C:\ and the relative https:// path to the file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor T2, 2020-09-14
@fantom_ask

look towards Deluge - a
torrent client written entirely in Python
https://github.com/lefthaha/deluge/blob/master/del...
No, HERE!!!:
https://github.com/rndusr/torf
HERE more:
https://github.com/stewrutledge/makeTorrent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question