Grabber Tutorial

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Grabber Tutorial

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

    #2
    PHP Code:
    <?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
    ?>

    Comment


      #3
      Pls What did that one do?

      Comment


        #4
        better you get what you need from page than replace what you dont need
        Unamos los corazones,hoy todos somos multicolores!

        Comment


          #5
          For example you can try grabber script as tube8.com


          Code:
          <?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); 
          ?>

          Comment


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

            Comment

            Working...
            X