juust ~ php oddities

Unordered list of one element
  • rss
  • begin
  • about
    • vcard
    • WTF is BroJesus
  • php scripts
    • flickr wp widget
    • google multi key serp tool, php script
    • gwt plugin
  • php classes
    • php pagerank class
    • fibonacci class
    • robots.txt parser php class
  • serp
    • serp dashboard wordpress plugin
  • services

serp tool 2008

juust | 22/09/2008

I never got around to building a serp tool with a mysql backend, one on a cronjob with an email option.
This weekend I got an OSWD free template, then it at least looks like a website. I develop a lot easier when it has a template. Filling in the blanks.

Often if you program a rough sketch, in time it sort of develops itself. If you don’t start nothing gets done.

I am developing it on juust.org/serp/, once its finished i’ll put one on trismegistos.net and put the source up for download.

It’s flimsy but the idea of a serp minisite with emailer option is commercially attractive.

It’s also important for the blog to have a ’serp’ page in the menu, and a serp page should have serp tools, in abundance, all kinds of them.

Comments
No Comments »
Categories
serp, tool
Tags
serp, tool
Comments rss Comments rss
Trackback Trackback

serp pagerank php seo tool

juust | 09/07/2008

So how did I do with a few days search engine optimisation ? not bad at all, on php+serp nicely on second spot behind shoemoney.com and on serp+php also front page, and on the 5 keys overall 13th. not bad for a PR0 domain.

5-key serp : serp pagerank php seo tool

count hits domain
7.8 8 www.juust.org
16 serp pagerank http://www.juust.org/ 0.2
8 serp php http://www.juust.org/ 1
9 serp php http://www.juust.org/index.php/php-serp-scripts/2008/07/ 1
99 serp tool http://www.juust.org/ 0.2
42 pagerank serp http://www.juust.org/ 0.2
3 php serp http://www.juust.org/ 3
4 php serp http://www.juust.org/index.php/php-serp-scripts/2008/07/ 2
70 seo serp http://www.juust.org/ 0.2

and who are the competition :

points results domain
20.2 13 www.seochat.com
16.6 21 www.seocompany.ca
15.6 13 sitening.com
14.6 10 www.webconfs.com
13.4 21 forums.digitalpoint.com
11.4 11 www.prchecker.info
11 4 en.wikipedia.org
10 19 www.webmasterworld.com
9 4 www.cristiandarie.ro
8.8 8 www.seroundtable.com
8.4 5 www.shoemoney.com
8.4 5 www.google.com
7.8 8 www.juust.org
7.6 6 tools.seobook.com
7.2 9 www.jumptags.com
7.2 14 www.seomoz.org
7 7 www.seoserp.com
6.4 14 forums.seochat.com
6.4 10 link.ezer.com
6.4 4 www.ljfind.com
5.8 7 www.iwebtool.com

Now, for the seo+tool niche… an online trackback spider…

Comments
No Comments »
Categories
php, serp
Tags
php, serp
Comments rss Comments rss
Trackback Trackback

php serp scripts

juust | 07/07/2008

Some basic PHP search engine result page scripts (always come in handy for yer basic seo adventures).

MSN Serp

  1. $first=1;
  2. $query="php+serp";
  3. $count=50;
  4.  
  5. $xml = @simplexml_load_file("http://search.live.com/results.aspx?q=$query&count=$count&first=$first&format=rss");
  6. foreach($xml->channel->item as $i) echo $i->link."<br />";

www.tellinya.com has another version for non-simplexml servers (uses curl and the ehttp.client class, the technique is closer to a sequential line parser so sometimes its more practical (hint:blog-pipe parsing with “streams”).

Yahoo Serp

  1.  
  2.         $varkeywords=$_GET["keywords"];
  3.         $vardomain=$_GET["domain"];
  4.        
  5.  
  6.         $strResult='';
  7.         $strHitsResult='';
  8.         $strHitsCount=0;
  9.         $strHits='';
  10.  
  11.         $start = 1;
  12.         $numberofresults = 10;
  13.         for($ii=0; $ii&lt;20; $ii++) {
  14.             $jj=$ii*$numberofresults+1;
  15.             $kk=$jj+$numberofresults;
  16.  
  17.         $vargoogleresultpage = "http://search.yahoo.com/search?p=".urlencode(trim($varkeywords))."&ei=UTF-8&fr=sfp&xargs=0&pstart=1&b=".$jj;
  18.             flush();  
  19.            
  20.             $googleresponse = join("",file($vargoogleresultpage));
  21.         $googlehits = preg_split('/<a class=\”yschttl\” /', $googleresponse, -1, PREG_SPLIT_OFFSET_CAPTURE);
  22.             foreach($googlehits as $googlehit){
  23.             $i++;
  24.             preg_match("/href=\"(.*?)\"/", $googlehit[0], $t, PREG_OFFSET_CAPTURE);
  25.                
  26.                
  27.             if($i > 1){
  28.                 $serp = $i-1;
  29.                 $SearchForDomain = "~".$vardomain."~i";
  30.                     if(preg_match($SearchForDomain, $t[1][0])){
  31.                     $strHitsCount++;
  32.                     $strHits .= $serp .', ';    
  33.                     $strResult=$strResult.$serp."<b><a href=\"".$t[1][0]."\" target=\"_blank\">".$t[1][0]."</a></b><br />";
  34.                     $strHitsResult = $strHitsResult.$serp."<b><a href=\"".$t[1][0]."\" target=\"_blank\">".$t[1][0]."</a></b><br />";
  35.                             } else {
  36.                                     $strResult=$strResult.$serp."</a><a href=\"".$t[1][0]."\" target=\"_blank\">".$t[1][0]."</a><br />";
  37.                                     }
  38.                         }
  39.            }
  40.         }
  41.         echo $strHits.' total = '.$strHitsCount.' <br />';
  42.         echo $strHitsResult;
  43.         echo '<br /><br />full list :<br />';
  44.  
  45.         echo $strResult;

Google SERP

  1.         $varkeywords=$_GET["keywords"];
  2.         $vardomain=$_GET["domain"];
  3.        
  4.  
  5.         $strResult='';
  6.         $strHitsResult='';
  7.         $strHitsCount=0;
  8.         $strHits='';
  9.  
  10.         $start = 1;
  11.         $numberofresults = 100;
  12.         for($ii=0; $ii&lt;11; $ii++) {
  13.             $jj=$ii*100+1;
  14.             $vargoogleresultpage = "http://www.google.com/search?as_q=".urlencode(trim($varkeywords))."&num=".$numberofresults."&start=".$jj."&hl=en&lr=lang_en";
  15.             flush();
  16.            
  17.             $googleresponse = join("",file($vargoogleresultpage));
  18.         $googlehits = preg_split('/class=r><a /', $googleresponse, -1, PREG_SPLIT_OFFSET_CAPTURE);
  19.             foreach($googlehits as $googlehit){
  20.                 $i++;
  21.                 preg_match("/href=\"(.*?)\"/", $googlehit[0], $t, PREG_OFFSET_CAPTURE);
  22.                
  23.                
  24.                 if($i > 1){
  25.                         $serp = $i-1;
  26.                         $SearchForDomain = "~".$vardomain."~i";
  27.                         if(preg_match($SearchForDomain, $t[1][0])){
  28.                             $strHitsCount++;
  29.                             $strHits .= $serp .', ';    
  30.                             $strResult=$strResult.$serp."<b><a href=\"".$t[1][0]."\" target=\"_blank\">".$t[1][0]."</a></b><br />";
  31.                             $strHitsResult = $strHitsResult.$serp."<b><a href=\"".$t[1][0]."\" target=\"_blank\">".$t[1][0]."</a></b><br />";
  32.                             } else {
  33.                                     $strResult=$strResult.$serp."</a><a href=\"".$t[1][0]."\" target=\"_blank\">".$t[1][0]."</a><br />";
  34.                                     }
  35.                         }
  36.            }
  37.         }
  38.         echo $strHits.' total = '.$strHitsCount.' <br />';
  39.         echo $strHitsResult;
  40.         echo '<br /><br />full list :<br />';
  41.  
  42.         echo $strResult;

MSN (being microsoft) don’t encourage commercial use of the rss-feed.

Comments
1 Comment »
Categories
php, serp
Tags
php, serp, tool
Comments rss Comments rss
Trackback Trackback

« Previous Entries Next Entries »

Recent Posts

  • geert wilders
  • gone till september
  • socialize me
  • Pagerank sculpting session
  • wish you were here

click me!
rss
Comments rss
Blog Directory
Web Developement Blogs - BlogCatalog Blog Directory
Listed in LS Blogs the Blog Directory and Blog Search Engine
Blog Flux Directory
joopita.com free web directory and search engine
design by jide
sitemap
22289 confirmed spam kills