eternal-flame-ad/magnet-dht — explained in plain English
Analysis updated 2026-07-20 · repo last pushed 2018-07-06
Build a search engine for downloadable BitTorrent content by harvesting magnet links at scale.
Research what types of files and resources are available on the BitTorrent DHT network.
Convert collected magnet links into torrent files and parse their contents to see what they contain.
Learn how decentralized peer-to-peer networks like DHT work by running a node that interacts with others.
| eternal-flame-ad/magnet-dht | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | — | — | 0 |
| Language | Python | Python | Python |
| Last pushed | 2018-07-06 | 2022-11-22 | — |
| Maintenance | Dormant | Dormant | — |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 3/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Redis installed and running, plus optionally aria2 if you want the magnet-to-torrent conversion feature.
Magnet-dht is a tool that collects magnet links from the BitTorrent network automatically. If you've ever used a magnet link to download a file, you know it's a convenient way to find and fetch resources without needing a central server. This project essentially sits on the network and gathers those links by the millions, without relying on any specific website. The tool works by joining the Distributed Hash Table (DHT) network, which is the decentralized system BitTorrent clients use to find each other without a central tracker. The project pretends to be a DHT node, connects to other nodes using UDP, and asks around for resources. As other nodes share information, the tool collects the magnet links they reference. It stores everything in Redis to automatically deduplicate entries, and uses multiple threads and processes to speed things up. The author reports collecting over a million magnet links in about four hours on a decent laptop. Beyond just collecting links, the project can also convert those magnet links into actual torrent files using a tool called aria2, and then parse the torrent files to see what specific resources they contain. This would appeal to someone building a search engine for downloadable content, a researcher studying what's available on the BitTorrent network, or really anyone curious about how decentralized file sharing works under the hood. It's a hands-on way to harvest data directly from the source rather than scraping download links from websites. One notable thing is that the author built this partly out of frustration with existing Python DHT crawlers, which were either undocumented or not compatible with Python 3. The project reflects an interest-driven approach to learning rather than being production-hardened, and the author notes that running it on a low-spec cloud server didn't go as well as on a local machine. You'll need Redis installed and optionally aria2 if you want the magnet-to-torrent conversion feature.
A Python tool that automatically collects magnet links from the BitTorrent network by joining its decentralized DHT network, storing them in Redis for deduplication.
Mainly Python. The stack also includes Python, Redis, aria2.
Dormant — no commits in 2+ years (last push 2018-07-06).
No license information is provided, so copyright defaults apply and usage rights are unclear.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.