The Pirate Bay has removed torrent file links of the torrents being shared by more than 10 people. However, there are a few ways to download the actual torrent links instead of magnet links. How to download the.torrent files. Using the hash value of the torrent file: Each torrent file on The Pirate Bay comes with a hash value. Magnet links have been introduced to replace torrent files, to reduce web-hosting server space and also to prevent any legal issue. Magnet links work same as a.torrent file, but now you cannot download torrent file from popular torrent website. Download torrent files faster and safer as direct download (Download torrent files. Can I convert a torrent magnet link into a direct download link, and what are.
If found a lot of similar questions, but they were all about python or other programming languages that I don't really understand.
My question is really simple: How do I convert a .torrent file into a magnet link/URI? Assuming that functions like Base32Encode() or GetSha1Hash() already exist in the program. It doesn't really have to be in javascript, something like 'You have to base32 encode the first 80 bytes of the file, multiply it by 5 and create an sha-1 hash form it would be enough.
ForivinForivin
1 Answer
The simplest magnet URI is just the hex-encoded info hash of the torrent:
To compute the info hash of a torrent, you need to SHA1-sum the
info
dict of the torrent file as a string.BlenderBlender
Not the answer you're looking for? Browse other questions tagged javascripttorrentmagnet-uri or ask your own question.
Is there a way to generate .torrent file from a magnet link using the MonoTorrent .Net library? If so can someone explain with an example? I searched the site as well as googled but cant find a solution. if it is not possible are there any other windows commnd line utility that will get the job done? thanks and appreciate ur help in advance!
user1715559user1715559
2 Answers
yes, It could be done using the monotorrent library.
you could take the hash value from the magnet link and use it to create a torrent manager that will create a torrent file before downloading.
if this were the magnet link:
magnet:?xt=urn:btih:18981bc9759950b4715ad46adcaf514e6a773cfe
this should download a torrent file to 'downloadsPathForTorrent', and you can stop the download as soon as it begins.
hope this helped.
for more information on how to implement this checkout the monotorrent documentation:
How To Download Magnet Link
dani139dani139
I know this is answered few years ago, still I solved it by using a website :
Just put the hash after the slash.
for exaple will download the same hash as dani gave above.
Work for me, much easier to archive.
Edit:
As @Gabriel Duarte mention, this work only on torrent that uploaded to the site, still I'm using this way because most of the biggest sites upload their torrents to this site, if I even need a better accuracy, I will probably use DHT search engine like this, even though it don't generate .torrent file but it supply .torrent info.
For me start complete Torrent client only for grab torrent file is too much resources I can provide.
How To Download Torrent File From Magnet Link Free
RemyRemy