Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolve metadata of a torrent from the hash (or the magnet link)? Ideally in python

I'm trying to take a magnet link (ie. magnet:?xt=urn:btih:640FE84C613C17F663551D218689A64E8AEBEABE) and fetch the metadata for it (title, files, comment, whatever else comes with a .torrent file). Ideally in python, but I'll take any info I can get

like image 763
Finn Avatar asked May 27 '13 19:05

Finn


2 Answers

  1. libtorrent
  2. python bindings

You are welcome.

like image 114
kirelagin Avatar answered Nov 14 '22 22:11

kirelagin


Check out Magnet2Torrent, which uses python and python-libtorrent to download a torrent file for any magnet uri that it is given.

like image 45
localhost Avatar answered Nov 14 '22 20:11

localhost