Free Automated Arbitrage Script + Good CTR Template

Status
Not open for further replies.
Very nice little script. Thanks

I have the same problem with the images. Only 0.jpg is saved not the others. I tried changing the /n is generate.php but that didn't work. I noticed that post that pointed that out said 2 instances of /n but I actually found 4. Two instances of the /n were for images so I tried changing those but didn't work. I then tried changing all 4 but still didn't save the images.
 


Dictionary.com Addon

I made an addon that sees if the keyword is at dictionary.com, and if it is, this script grabs the part of speech and first definition and outputs it. Kudos to lerchmo for making such an easy script to add to. :)

generate.php
Add these two functions wherever you want within the Arbitrage class.

PHP:
        function looseDict($keyword)
        {
            $bot = new Bot();
            $keyword = str_replace(' ', '+', $keyword);
            $data = $bot->get('http://dictionary.reference.com/browse/' . $keyword);
            $content = $this->strip_dict($data, $keyword);
            
            return $content;
            
        }
        
        function strip_dict($content, $keyword)
        {
            // check if there is an entry found...
            
            if(strpos($content, '<h1>No results found for <em>') != FALSE)
            {
                $dictionary = '';
            }
            else {
            
                preg_match('/<span class="pg">(.*)<\/span>/', $content, $matches);
                $pos = trim(strip_tags($matches[1]));
                
                preg_match("/<table class=\"luna-Ent\"><tr><td valign=\"top\" class=\"dn\">1.<\/td><td valign=\"top\">(.*)<\/td><\/tr><\/table>/", $content, $matches);
                $def = trim(strip_tags($matches[1]));
                $dictionary = '<em>from dictionary.com...</em><br /><strong>' . $keyword . '</strong> - <em>' . $pos . '</em> - ' . $def . '<br /><br />';
                
    
                /*FORMAT:<span class="pg">–noun  </span><table class="luna-Ent"><tr><td valign="top" class="dn">1.</td><td valign="top">the means by which the presence, quality, or genuineness of anything is determined; a means of trial. </td></tr></table>*/
            }
            return $dictionary;
        }
        
        function looseWiki($keyword)
        {
            $bot = new Bot();
            $keyword = str_replace(' ','+',$keyword);
            $data =    $bot->get("http://www.google.com/search?q=site:wikipedia.org+$keyword");
            $term = $bot->getVal('/en.wikipedia.org\/wiki\/(.*?)"/',$data);
            $wiki = $bot->get("http://en.wikipedia.org/wiki/$term");
            /*$content = strip_tags($wiki);
            $content = str_replace(array(1,2,3,4,5,6,7,8,9,0,'[',']','edit'),'',$content);
            $content = str_replace('[edit]','',$content);            
            */
            
            $content = $this->strip_wiki($wiki);
            
            return $content;
            //bodyContent
        }
Now scroll down towards the bottom where it says:

PHP:
echo $arb->looseWiki($keyword);
Right below that, add:

PHP:
echo $arb->looseDict($keyword);
That's it.

I will let you guys know if I make any more additions. :)
 
  • Like
Reactions: jened
Dictionary.com Addon

I made an addon that sees if the keyword is at dictionary.com, and if it is, this script grabs the part of speech and first definition and outputs it. Kudos to lerchmo for making such an easy script to add to. :)

generate.php
Add these two functions wherever you want within the Arbitrage class.

PHP:
        function looseDict($keyword)
        {
            $bot = new Bot();
            $keyword = str_replace(' ', '+', $keyword);
            $data = $bot->get('http://dictionary.reference.com/browse/' . $keyword);
            $content = $this->strip_dict($data, $keyword);
            
            return $content;
            
        }
        
        function strip_dict($content, $keyword)
        {
            // check if there is an entry found...
            
            if(strpos($content, '<h1>No results found for <em>') != FALSE)
            {
                $dictionary = '';
            }
            else {
            
                preg_match('/<span class="pg">(.*)<\/span>/', $content, $matches);
                $pos = trim(strip_tags($matches[1]));
                
                preg_match("/<table class=\"luna-Ent\"><tr><td valign=\"top\" class=\"dn\">1.<\/td><td valign=\"top\">(.*)<\/td><\/tr><\/table>/", $content, $matches);
                $def = trim(strip_tags($matches[1]));
                $dictionary = '<em>from dictionary.com...</em><br /><strong>' . $keyword . '</strong> - <em>' . $pos . '</em> - ' . $def . '<br /><br />';
                
    
                /*FORMAT:<span class="pg">–noun  </span><table class="luna-Ent"><tr><td valign="top" class="dn">1.</td><td valign="top">the means by which the presence, quality, or genuineness of anything is determined; a means of trial. </td></tr></table>*/
            }
            return $dictionary;
        }
        
        function looseWiki($keyword)
        {
            $bot = new Bot();
            $keyword = str_replace(' ','+',$keyword);
            $data =    $bot->get("http://www.google.com/search?q=site:wikipedia.org+$keyword");
            $term = $bot->getVal('/en.wikipedia.org\/wiki\/(.*?)"/',$data);
            $wiki = $bot->get("http://en.wikipedia.org/wiki/$term");
            /*$content = strip_tags($wiki);
            $content = str_replace(array(1,2,3,4,5,6,7,8,9,0,'[',']','edit'),'',$content);
            $content = str_replace('[edit]','',$content);            
            */
            
            $content = $this->strip_wiki($wiki);
            
            return $content;
            //bodyContent
        }
Now scroll down towards the bottom where it says:

PHP:
echo $arb->looseWiki($keyword);
Right below that, add:

PHP:
echo $arb->looseDict($keyword);
That's it.

I will let you guys know if I make any more additions. :)
 
chatmasta - awesome work!!!! +rep

redtricycle - it was never implemented in the version of the code. i think it was being saved for the loyalty area version. it is supposed to tie in with the google channel tracking. just use url tracking if you want to get things up and running.
 
@ lerchmo

Thanks for the script. One question: will it be able to scrap the content of the german version of wikipedia also? Or will I have to make changes to the script (and if so---where?)

Thanks for Info and kind regards from Germany
UHI
 
Thanks

I made an addon that sees if the keyword is at dictionary.com, and if it is, this script grabs the part of speech and first definition and outputs it. Kudos to lerchmo for making such an easy script to add to. :)

I will let you guys know if I make any more additions. :)


You are very cooperative. Thanks for great help.

 
Galahad, you're probably going to have to change the template. After all, this is a pretty old post and the rules have changed since then.
 
why can't i d/l the script now? it appears the script has been moved to a section of the site i don't have access to even after registering?
 
The template - it's against AdSense TOS.

Just edit template.php with some template...

The only thing you really need there is <?=stripslashes($content) ?> ( Content from wikipedia )

Everything else is just simple xhtml/css template....
 
With all the issues regarding Adsense Arbritage (another Google Slap where they closed publisher's Adsense Account if they are caught doin arbitrage), I don't think the template is useful anymore.

Although this is an excellent template but it's just too bad we can't use that anymore.. *damn Google*
 
WickedAffiliate is correct, sadly if google catches you doing arbitrage they will close your account, its officially dead, some accounts just have not been caught yet.
 
Status
Not open for further replies.