Getting Seeders and Leechers from Hash

Status
Not open for further replies.

John

Active Member
652
2009
43
35
Now I will show you how to get number of seeds and leechers withoud running trucker on your server :)

This code will parse torrentz.eu and give you information of Seeds and Peers for any hash file of any torrents...

Code:
<html><head>
<title><?php


if(isset($_GET["hash"])) {
echo $_GET["hash"]." - ";
 } ?>Get Seeds and Leechers</title>
</head>
<body>
<center><br><br>
<form action="/seedsleechers.php" method="get">
Hash: <input type="text" name="hash" size="50"><br><br>
<input type="submit"></form><br><br>


<?php


if(isset($_GET["hash"])) {
$hash = $_GET["hash"];


$hashlink = "https://torrentz.eu/".$hash;
$content = file_get_contents($hashlink);
$first_step = explode( '</span> <span class="u">' , $content );
$second_step = explode("</span>" , $first_step[1] );
$seeds = $second_step[0];


$first_step = explode( '</span> <span class="d">' , $content );
$second_step = explode("</span>" , $first_step[1] );
$leechers = $second_step[0];
$seeds = str_replace( ',', '', $seeds );
$leechers = str_replace( ',', '', $leechers );
echo "<br<br><h1>Seeders: ".$seeds."</h1>";
echo "<br><h1>Leechers: ".$leechers."</h1></center>";
}
?>

I have question now... This code I wrote works perfect - It only fails in cases where Torrentz got DMCA request so this code will not find any Seeds and peers informations

I tried to add this code in my php file that generates movie pages - something like "showthread.php" and I thouth it will be best to count seeds and peers on the fly but that slow down page loading... Then I had ides to make javascript button so users will click and see Seed and peer stats... Do you have any other IDea???? :)

TNX
 
Last edited:
Status
Not open for further replies.
Back
Top