Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Scrape UDP trackers
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2019-09-07 16:33:08
I've never allowed external torrents but thinking of changing that so I'll test your code serph on my live site, botanicar if you have old code that use to work might be worth posting here it might have something useful in there
2019-09-07 21:08:31
Hi M-jay,
of course I can share all parts of the code, it is very hard-coded for my needs and my language, it is also very "cosmetic" polished and needs some javascript, css etc.


as I wrote in another forum where you are also active like me, that whatever we have we need to share with each other, but it works on some server and it does not work on some server
Scraper 2.08.rar
Download



www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Unknown User
2019-09-07 21:31:34
yeah thats the old scrapper the original one [USER=311]@MicroMonkey[/USER] posted in the first thread
Unknown User
2019-09-08 15:51:17
You guys may find this useful:


<?php
function scrapeSupported($tracker)

{

   $pieces = parse_url($tracker);

   if (! isset($pieces['scheme'])) {

       return false;

   } elseif (! preg_match('@^(http[s]?|udp)$@', $pieces['scheme'])) {

       return false;

   }

   $delimiter = strripos($pieces['path'], '/');

   if ($delimiter === false) {

       return false;

   } elseif (substr($pieces['path'], ++$delimiter, 8) !== 'announce') {

       return false;

   } else {

       return true;

   }

}



$urls[] = "http://example.com/announce";

$urls[] = "http://example.com/x/announce";

$urls[] = "http://example.com/announce.php";

$urls[] = "http://example.com/a";

$urls[] = "http://example.com/announce?x2%0644";

$urls[] = "http://example.com/announce?x=2/4";

$urls[] = "http://example.com/x%064announce";

$urls[] = "http://foobar.org:8080/passkey/announce";

foreach ($urls as $url) {

   $results[$url] = scrapeSupported($url);

}

var_dump($results);




It returns as follows:


array(8) {

 ["http://example.com/announce"]=>

 bool(true)

 ["http://example.com/x/announce"]=>

 bool(true)

 ["http://example.com/announce.php"]=>

 bool(true)

 ["http://example.com/a"]=>

 bool(false)

 ["http://example.com/announce?x2%0644"]=>

 bool(true)

 ["http://example.com/announce?x=2/4"]=>

 bool(true)

 ["http://example.com/x%064announce"]=>

 bool(false)

 ["http://foobar.org:8080/passkey/announce"]=>

 bool(true)

}


I would recommend implementing it to the core in order to determine where a announce url supports scrape or not.
Unknown User
2019-09-08 17:03:41
Also there is a major problem with announces. If site has 20k torrents there could be over half million columns of repeated announces...

It's really, really bad how big it can grow.
Unknown User
2020-08-10 09:23:09

V3
External Torrent
LIVE STATS:
Seeders: 0
Leechers: 0
Completed: 0
SCREENSHOT
[URL unfurl="true"]https://prnt.sc/tx1fi2[/url]
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728