Grabber Tutorial

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

5 replies · 3,286 views · started 16 years ago · 1 min read

5 participants
StRiNg_MaStEr Developer · 93 posts #1

Any One Can post full Grabber tutorial including how to remove Original Site's Ads in That Grabber

something else Fellow · 2,296 posts #2
<?php 
$page = file_get_contents("http://somesite.con");    // get there page
$page = str_replace('Somesite.con','Your site name',$page);   // replace there site name with yours ... can add more lines to replace other things
$page = preg_replace('/<a href=\"http:\/\/ads(.*?)<\/a>/','',$page);  // replace any links that are http://ads (anything here)</a> with nothing
print $page;  //print page
?>
morency Senior · 488 posts #4

better you get what you need from page than replace what you dont need 🙂

Unamos los corazones,hoy todos somos multicolores!

akela Senior · 305 posts #5

For example you can try grabber script as tube8.com

<?php 
// create a new cURL resource 
$ch = curl_init(); 
$userAgent = 'Nokia6233/2.0 (03.70) Profile/MIDP-2.0 Configuration/CLDC-1.1 UNTRUSTED/1.0'; 
$n=$_GET["n"]; 
$url="http://m.tube8.com/"; 
if(!$n){} 
else $url.=$n; 
//$text = file("http://www.tube8.com/"); 
//$text = @implode("", $text); 
// set URL and other appropriate options 
curl_setopt($ch, CURLOPT_URL, $url); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); 
//curl_setopt($ch, CURLOPT_HEADER, false); 
// grab URL and pass it to the browser 
$text = curl_exec($ch); 
// close cURL resource, and free up system resources 
curl_close($ch); 
/* 
header("Cache-Control: no-cache"); 
header("Content-Type:text/html;charset=UTF-8"); 
$text = str_replace('<!-- AFFILIATE CSS --><!-- END AFFILIATE CSS -->','',$text); 
*/ 
 $text=preg_replace('/(<!DOCTYPE).*(page_container">)/','<div class="$2',$text); 
 $text=preg_replace('/(<a rel="nofollow" href="http:\/\/).*(class="stand_out bold")/','<a href="http://www.mobirockz.com" class="stand_out bold"',$text); 
 $text=preg_replace('/(<img src="\/ga\.php).*(Join Now!<\/a><\/div><\/div>)/','$1 ',$text); 
 $text=preg_replace('/(\/video\/show\/title\/)/','details.php?v=/',$text); 
 $text=preg_replace('/(\/video\/browse\/page\/)/','index.php?n=$1',$text); 
 $text=preg_replace('/(\/category\/)/','index.php?n=$1',$text); 
 $text=str_replace('http://partners.tube8.com/v/140x105/','prev.php?pic=',$text); 
 $text=str_replace('More Info','Download',$text); 
 $text=str_replace('<img src="/ga.php','',$text); 
 $text=str_replace('<p>','',$text); 
 $text=str_replace('</p>','<br>',$text); 
 $text=str_replace('<strong>','',$text); 
 $text=str_replace('</strong>','',$text); 
 $text=str_replace('pagination_box','dr',$text); 
 $text=preg_replace('/(<div class="clear"><\/div><\/div><\/div><\/div><center>).*(<\/center>)/','</div></div></div>',$text); 
 $text=str_replace('</body></html>','',$text); 
?>

External image (may be gone) Unlimited Web Hosting service. 99.99 $ uptime Guarantee. Free Trail Available for 30 days. Free Script | Null script| Php | Unlimited Web Hosting| Unlimited Space | Unlimited Bandwidth| Unlimited Domain| $3/m Unlimited Space | Unlimited Bandwidth|5 Domain| $2/m 10 GB Space | 100 GB Bandwidth| 1 Domain| $1/m FFMPEG| FREE SCRIPT | FREE SITE BUILDER |LIVE SUPPORT [Timewebhosting.com On Web Hosting| Unlimited Web Hosting](http://www…

jaidon20k Developer · 64 posts #6

Pls guy what is grabber? Pls tell to know more.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close