Thread: Mega Scrape
View Single Post
  #5  
Old 11th March 2013, 00:12
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default
Quote:
Originally Posted by daffy View Post
Add both files to root. point site or make link for admin view only

to mega-start.php this will start mega_scrape.php

p.s coming from my modded site of V2.03/2.04 from 2009
V2.7

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in public_html/mega_scrape.php on line 28
Next refresh in 3 seconds

ON LINE28:

PHP Code:
while ($row=mysql_fetch_assoc($res)) {//do the scrape

            
$tracker=str_replace("/announce","/scrape",$row['announce']);    

            
$stats             torrent_scrape_url($tracker$row["info_hash"]);

            
$seeders1         strip_tags($stats['seeds']);

            
$leechers1         strip_tags($stats['peers']);

            
$downloaded1    strip_tags($stats['downloaded']);

                        
$name1    = ($row["name"]); 
Reply With Quote