magnet-uri

How to create torrent file from magnet link using java?

混江龙づ霸主 提交于 2019-11-30 16:45:05
So I wanted to work on a new Java project that converts magnet URIs into .torrent files, however I can't find a way to do that, basically I broke a magnet URI into pieces : The used URI : magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.example4.com%3A80&tr=udp%3A%2F%2Ftracker.example5.com%3A80&tr=udp%3A%2F%2Ftracker.example3.com%3A6969&tr=udp%3A%2F%2Ftracker.example2.com%3A80&tr=udp%3A%2F%2Ftracker.example1.com%3A1337 The breaking down : magnet:? xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36 dn=Leaves+of+Grass

How to create torrent file from magnet link using java?

荒凉一梦 提交于 2019-11-29 23:59:39
问题 So I wanted to work on a new Java project that converts magnet URIs into .torrent files, however I can't find a way to do that, basically I broke a magnet URI into pieces : The used URI : magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.example4.com%3A80&tr=udp%3A%2F%2Ftracker.example5.com%3A80&tr=udp%3A%2F%2Ftracker.example3.com%3A6969&tr=udp%3A%2F%2Ftracker.example2.com%3A80&tr=udp%3A%2F%2Ftracker.example1.com%3A1337

Magnet links library for PHP

☆樱花仙子☆ 提交于 2019-11-29 13:02:24
Does anyone here know of a magnet-URI -parser for PHP? To validate it, or maybe to extract some information from it? In case you're looking for something like this: Magnet URI: magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C (valid) Display Name .... (dn): eXact Length .... (xl): eXact Topic ..... (xt): urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C Acceptable Source (as): eXact Source .... (xs): Keyword Topic ... (kt): Manifest Topic .. (mt): address TRacker . (tr): take a look at the Demo . Can't say if this matches your need, your question was sort of unspecific. So leave a comment. If you

Magnet links library for PHP

被刻印的时光 ゝ 提交于 2019-11-28 06:39:54
问题 Does anyone here know of a magnet-URI -parser for PHP? To validate it, or maybe to extract some information from it? 回答1: In case you're looking for something like this: Magnet URI: magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C (valid) Display Name .... (dn): eXact Length .... (xl): eXact Topic ..... (xt): urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C Acceptable Source (as): eXact Source .... (xs): Keyword Topic ... (kt): Manifest Topic .. (mt): address TRacker . (tr): take a look at the

Given a .torrent file how do I generate a magnet link in python? [closed]

旧城冷巷雨未停 提交于 2019-11-27 18:35:32
I need a way to convert .torrents into magnet links. Would like a way to do so in python. Are there any libraries that already do this? You can do this with the bencode module, extracted from BitTorrent. To show you an example, I downloaded a torrent ISO of Ubuntu from here: http://releases.ubuntu.com/12.04/ubuntu-12.04.1-desktop-i386.iso.torrent Then, you can parse it in Python like this: >>> import bencode >>> torrent = open('ubuntu-12.04.1-desktop-i386.iso.torrent', 'r').read() >>> metadata = bencode.bdecode(torrent) A magnet hash is calculated from only the "info" section of the torrent

How PEX protocol (Magnetic links) finds it first IP?

一笑奈何 提交于 2019-11-27 11:50:22
I'm trying to understand how can a magnetic link work, as I've read they use DHT and PEX to get the peers, but if I'm a new node in the network how can I find peers with only the hash of the file?! Doesn't it always require a link to a known host? Thanks The bittorrent DHT can be bootstrapped in many ways. It just needs the IP and Port of any other reachable DHT node out there. Current clients generally use several of the following strategies: bootstrap from a cache of long-lived nodes from a previous session use a DNS A/AAAA record mapping to a known node (e.g. router.bittorrent.com or dht

How do BitTorrent magnet links work?

匆匆过客 提交于 2019-11-27 05:52:32
For the first time I used a magnet link . Curious about how it works, I looked up the specs and didn't find any answers. The wiki says xt means "exact topic" and is followed by the format ( btih in this case) with a SHA1 hash. I saw base32 mentioned, knowing it's 5 bits per character and 32 characters, I found it holds exactly 160bits, which is exactly the size of the SHA1. There's no room for an IP address or anything, it's just a SHA1. So how does the BitTorrent client find the actual file? I turned on URL Snooper to see if it visits a page (using TCP) or does a lookup or the like, but