If you want to use DHT to retrieve, you will have to bootstrap and run it. retrieve_torrent () except FailedToFetchException : print ( "Failed" ) asyncio. Use from python import asyncio from magnet2torrent import Magnet2Torrent, FailedToFetchException async def fetch_that_torrent (): m2t = Magnet2Torrent ( "magnet:?xt=urn:btih:e2467cbf021192c241367b892230dc1e05c0580e&dn=&tr=https%3A %2F%2F %2F announce&tr=https%3A %2F%2F %2F announce" ) try : filename, torrent_data = await m2t. magnet2torrent -use-dht -dht-state-file dht.state -torrent-cache-folder torcache serve -apikey secretkey Run it as an HTTP server with lots of features enabled. Getting Started Installing pip install magnet2torrentÄownload an ubuntu iso torrent. The goal is to do it as fast as possible. Pure python project to turn a magnet link into a.
0 Comments
Leave a Reply. |