0% found this document useful (0 votes)
52 views2 pages

Ree Onlin

This document describes two methods for obtaining a .torrent file from a magnet link. The first method uses the aria2 command line tool to download just the metadata and save it as a .torrent file. The second method uses the Node.js parse-torrent module to programmatically parse the metadata from the magnet link and save it as a .torrent file. Both methods allow one to get a standard torrent file that can be opened in torrent clients from a magnet link alone.

Uploaded by

innoxred
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

Ree Onlin

This document describes two methods for obtaining a .torrent file from a magnet link. The first method uses the aria2 command line tool to download just the metadata and save it as a .torrent file. The second method uses the Node.js parse-torrent module to programmatically parse the metadata from the magnet link and save it as a .torrent file. Both methods allow one to get a standard torrent file that can be opened in torrent clients from a magnet link alone.

Uploaded by

innoxred
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

11/29/23, 8:39 PM How to get .

torrent files from magnet link | Free Online Tutorials

Free Online Tutorials (https://tutorialspots.com/) 4


Tutorials, Resources and Snippets (https://whos.amung.us/stats/tu

How to get .torrent files from magnet link


phptuts (https://tutorialspots.com/author/phptuts) - October 3, 2018

(https://track.vivaclix.com/click?
_d=UllSCgpdBAQDFVNZVg8DBwwKBwAeBFFTXAEWQloGBVQCUlFTERxYAAwFDwUKVRBVWVgP
ARE YOU OVER 18?

YES NO

How to get .torrent files from magnet link ?

Method 1: using aria2

Read more: How to install aria2 on CentOS (http://tutorialspots.com/how-to-install-aria2-on-centos-4179.html)

Using this command line:

1 aria2c -d /path/to/save/torrent/file --bt-metadata-only=true --bt-save-metadata=true "magnet link"

E.g:

(https://track.vivaclix.com/click?
_d=UllSCgpdBAQDFVNZVg8DBwwKBwAeBFFTXAEWQloGBVQCUlFTERxYAAwFDwUKVRBVWVgP
ARE YOU OVER 18?

YES NO

1 aria2c -d /home/torrents --bt-metadata-only=true --bt-save-metadata=true "magnet:?xt=urn:btih:D0F4204EA69169

Method 2: Nodejs

Using parse-torrent (https://www.npmjs.com/package/parse-torrent)

E.g:

1 const parseTorrent = require('parse-torrent');


2 const fs = require('fs');
3 const info = parseTorrent('magnet link');
4 const buf = parseTorrent.toTorrentFile(info);
5 fs.writeFile('ex.torrent', buf, (err) => {
6 if (err) throw err;
7 console.log('The torrent file has been saved!');
8 });

Recent search terms:


magnet:?xt=urn:btih:559bd24771d3dbe03bbabed6616a1b6353e28957&tr=udp://93 158 213 92:1337/announce&tr=udp://102 223 180
235:6969/announce&tr=udp://23 134 88 6:1337/announce&tr=udp://193 189 100 189:6969/announce&tr=udp://185 243 218 213
magnet:?xt=urn:btih:f406ccaace578fe472d7301b109d267ed120d891&tr=udp://93 158 213 92:1337/announce&tr=udp://102 223 180
235:6969/announce&tr=udp://152 231 114 33:1337/announce&tr=udp://23 134 88 6:1337/announce&tr=udp://193 189 100 186:

https://tutorialspots.com/how-to-get-torrent-files-from-magnet-link-4375.html 1/2
11/29/23, 8:39 PM How to get .torrent files from magnet link | Free Online Tutorials

TORRENT (HTTPS://TUTORIALSPOTS.COM/TAG/TORRENT) JS (HTTPS://TUTORIALSPOTS.COM/CATEGORY/JS)

PHPTUTS (HTTPS://TUTORIALSPOTS.COM/AUTHOR/PHPTUTS)

PREVIOUS POST NEXT POST

PHP: How To Fix Error: Session_start(): Failed To Read Session How To Download Magnet Link Use Aria2?
Data (Https://Tutorialspots.Com/Php-How-To-Fix-Error- (Https://Tutorialspots.Com/How-To-Download-Magnet-
Session_start-Failed-To-Read-Session-Data-4364.Html) Link-Use-Aria2-4378.Html)

https://tutorialspots.com/how-to-get-torrent-files-from-magnet-link-4375.html 2/2

You might also like