Rapidshare's new API update measures the resources you are using..

If you hit the limit you get IP banned, this is bad news for linkcheckers so you need to update your scripts to safeguard against dumping topics with live links.



This code outputs how many hits you have left before being IP banned by Rapidshare API


You can also use this to check if you are already banned

Code: 
<?
$res= file_get_contents("http://api.rapidshare.com/cgi-bin/rs...b=getapicpu_v1");
list($par,$ptb) =explode(',',$res);
echo "Current Points : ".$par."<br />";
echo "Points Until Banned : ".$ptb;
?>
You can add it to your script/link-checker to safeguard against being banned & falsely detecting dead links.

Just comment out the 'echo' lines, and add a line into your script where the links are checked


Something like this
Code: 
if ($ptb < 20) {echo"Out of API resources... Quiting"; exit; }
Gavo Reviewed by Gavo on . Check your resource usage on Rapidshare API - For link checkers Rapidshare's new API update measures the resources you are using.. If you hit the limit you get IP banned, this is bad news for linkcheckers so you need to update your scripts to safeguard against dumping topics with live links. This code outputs how many hits you have left before being IP banned by Rapidshare API You can also use this to check if you are already banned :) Rating: 5