Finn
Finn

Reputation: 374

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

Upvotes: 7

Views: 4749

Answers (2)

kirelagin
kirelagin

Reputation: 13616

  1. libtorrent
  2. python bindings

You are welcome.

Upvotes: 6

localhost
localhost

Reputation: 1273

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

Upvotes: 2

Related Questions