1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

This Script Is PIMP! Google Blog Search (Automated)

Discussion in 'Black Hat SEO Tools' started by Debian, Sep 5, 2009.

  1. Debian

    Debian Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 17, 2009
    Messages:
    711
    Likes Received:
    282
    Occupation:
    Residential Proxies & VPN's
    Home Page:
    First and foremost, I take no credit for this script as I saw it on the web and tried it out personally after looking over the small script in fine detail to make sure nothing under the table was added in. This script uses the keyword(s) you input and returns hundreds to thousands of results from Google's Blog Search for url's that can be loaded up in PR Storm or any other link spamming program.

    **You?ll need PHP5, and a server with cURL enabled for this script to work**

    Instructions for use:

    1. Copy the below code into a new text file. Wordpad is best. You can name it anything you like but make sure the file is saved with the .php extension.
    2. Change the $keyword variable at the top of the script to the keyword you want to search for
    3. Save the script and upload it to your server
    4. Navigate to the script in your browser, and wait, you?ll get your list. Be PATIENT as it may take a few minutes to generate your list.


    Code:
    ============ Start PHP Script ================
     <?php
     //give the script a keyword to search for
    $keyword = ?ipod touch?;
    $keyword = str_replace(? ?, ?+?, $keyword);
     //start a counter so we can number our results
    $num = 0;
     //set a start for our paging of Google Blogsearch (we?re going to be getting 10 pages X 100 results)
    $start = 0;
     do {
     //Create the feed URL we?re going to get from Google Blogsearch
    $feed = ?http://blogsearch.google.com/blogsearch_feeds?hl=en&q=%22′ .$keyword. ?+%22powered+by+wordpress%22&ie=utf-8&num=100&start=? .$start. ?&output=rss?;
     //We?re using cURL to actually go fetch the page from Google Blogsearch
    $ch = curl_init($feed);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $feed);
    $page = curl_exec($ch);
    curl_close($ch);
     //Loop through the feed, and suck out the URL?s
    $xml = new SimpleXMLElement($page);
     foreach ($xml->channel->item as $item) {
     //Add 1 to our counter, so our list has numbers next to the URL?s
    $num = $num + 1;
     $link = $item->link;
     //Print our shit to the page
    echo $num. ? - <a href=?? .$link. ??>? .$link. ?</a><br>?;
     }
     //Have a rest so we don?t get banned for hitting Google too hard and fast
    sleep(30);
     //Add 100 to the start, so we can fetch the next 100 results
    $start = $start + 100;
     }
     //Keep doing this shit until we get to page 10 of the Google results
    while ($start < 1000);
     ?>
     ============ End PHP Script ================
    
     
    • Thanks Thanks x 7
  2. phil3627

    phil3627 Registered Member

    Joined:
    Jan 22, 2009
    Messages:
    63
    Likes Received:
    2
    How do I use the list in PR Storm.
     
  3. Debian

    Debian Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 17, 2009
    Messages:
    711
    Likes Received:
    282
    Occupation:
    Residential Proxies & VPN's
    Home Page:
    You load it up in the text file named "URLS." But you may want to clean up the results first before you just run PR Storm.
     
  4. kesoh

    kesoh Registered Member

    Joined:
    Jun 2, 2008
    Messages:
    55
    Likes Received:
    21
    Home Page:
    Sounds cool I'll give it a drive around the block thanks for the keys I promise I wont wreck it boss
     
  5. Maruk

    Maruk Power Member

    Joined:
    Jun 15, 2009
    Messages:
    562
    Likes Received:
    898
    Home Page:
    I get:
    on line 5, the keywordstring

    Looks awesome though
    [edit]nvm, got it, just need to replace some string terminators
     
    Last edited: Sep 5, 2009
  6. Pedriox

    Pedriox Newbie

    Joined:
    Aug 17, 2009
    Messages:
    5
    Likes Received:
    1
    Home Page:
    Dont Work Form Me..
     
  7. Nocali

    Nocali Newbie

    Joined:
    May 29, 2009
    Messages:
    41
    Likes Received:
    6
    Can you explain please or post the working code? I'm getting teh same T string error
     
  8. Maruk

    Maruk Power Member

    Joined:
    Jun 15, 2009
    Messages:
    562
    Likes Received:
    898
    Home Page:
    Here you go:
    PHP:
    ============ Start PHP Script ================
     <?php
     
    //give the script a keyword to search for
    $keyword "your keywords here seperated by a ";
    $keyword str_replace(" ""+"$keyword);
     
    //start a counter so we can number our results
    $num 0;
     
    //set a start for our paging of Google Blogsearch (we?re going to be getting 10 pages X 100 results)
    $start 0;
     do {
     
    //Create the feed URL we?re going to get from Google Blogsearch
    $feed 'http://blogsearch.google.com/blogsearch_feeds?hl=en&q=%22' .$keyword'+%22powered+by+wordpress%22&ie=utf-8&num=100&start=' .$start'&output=rss';
     
    //We?re using cURL to actually go fetch the page from Google Blogsearch
    $ch curl_init($feed);
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
    curl_setopt($chCURLOPT_URL$feed);
    $page curl_exec($ch);
    curl_close($ch);
     
    //Loop through the feed, and suck out the URL?s
    $xml = new SimpleXMLElement($page);
     foreach (
    $xml->channel->item as $item) {
     
    //Add 1 to our counter, so our list has numbers next to the URL?s
    $num $num 1;
     
    $link $item->link;
     
    //Print our shit to the page
    echo $num' - <a href="' .$link'">' .$link'</a><br>';
     }
     
    //Have a rest so we don?t get banned for hitting Google too hard and fast
    sleep(10);
     
    //Add 100 to the start, so we can fetch the next 100 results
    $start $start 100;
     }
     
    //Keep doing this shit until we get to page 10 of the Google results
    while ($start 1000);
     
    ?>
     ============ End PHP Script ================
     
    • Thanks Thanks x 2
  9. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    Well, I've modified it a bit for the sake of helping.

    To specify a keyword, add change the GET variable of 'keyword' to whatever you want.
    Example: [ http://www.example.com/gblogsearch.php?keyword=ipod touch ]

    I also removed the numbers from the output, because it looks ugly.. To use the numbered search, append the GET variable of 'numbered'
    Example: [ http://ww.example.com/gblogsearch.php?keyword=ipod touch&numbered ]

    Here's the code:
    PHP:
    <?php
    if(!$_GET['keyword']) {
        die(
    "You did not specify a keyword!");
    } else {
        
    $keyword $_GET['keyword'];
        echo 
    "<center>Keyword: ".$keyword."</center>";
    }
    //give the script a keyword to search for
    //$keyword = "something";
    $keyword str_replace(" ""+"$keyword);
    $keyword str_replace("%20""+"$keyword);
    //start a counter so we can number our results
    $num 0;
    //set a start for our paging of Google Blogsearch (we're going to be getting 10 pages X 100 results)
    $start 0;
    do {
    //Create the feed URL we're going to get from Google Blogsearch
        
    $feed 'http://blogsearch.google.com/blogsearch_feeds?hl=en&q=%22' .$keyword'+%22powered+by+wordpress%22&ie=utf-8&num=100&start=' .$start'&output=rss';
        
    //We're using cURL to actually go fetch the page from Google Blogsearch
        
    $ch curl_init($feed);
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
    curl_setopt($chCURLOPT_URL$feed);
        
    $page curl_exec($ch);
        
    curl_close($ch);
        
    //Loop through the feed, and suck out the URL's
        
    $xml = new SimpleXMLElement($page);
        foreach (
    $xml->channel->item as $item) {
        
    //Add 1 to our counter, so our list has numbers next to the URL's
            
    $num $num 1;
            
    $link $item->link;
            
    //Print our shit to the page
            
    if (isset($_GET['numbered']))
                echo 
    $num' - <a href="' .$link'">' .$link'</a><br>';
            else
                echo 
    '<a href="' $link '">' $link '</a><br />';
        }
        
    //Have a rest so we don't get banned for hitting Google too hard and fast
        
    sleep(10);
        
    //Add 100 to the start, so we can fetch the next 100 results
        
    $start $start 100;
    }
    //Keep doing this shit until we get to page 10 of the Google results
    while ($start 1000);
     
    ?>
    Excuse my multi-posting below... I was either lagging or BHW was lagging... I kept getting blank pages and when I refreshed this page, I saw I didn't post... And then when I posted, like 5 other of my previous posts finally posted...
     
    • Thanks Thanks x 2
    Last edited: Sep 6, 2009
  10. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    OMFG. Multi-post...
     
    Last edited: Sep 6, 2009
  11. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    OMFG. Multi-post...
     
    Last edited: Sep 6, 2009
  12. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    OMFG. Multi-post...
     
    Last edited: Sep 6, 2009
  13. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    OMFG. Multi-post...
     
  14. boiler

    boiler Power Member

    Joined:
    Apr 27, 2009
    Messages:
    677
    Likes Received:
    127
    Home Page:
    thx for the code
     
  15. raghoo

    raghoo Newbie

    Joined:
    Dec 18, 2008
    Messages:
    38
    Likes Received:
    2
    i am getting only ============ Start PHP Script ================ ============ End PHP Script ================ instead of list any one help
     
  16. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    1. Did you name it with an extension of .php? [EG: gblogsearch.php]
    2. Does your server have PHP installed? To test PHP installation, do the following:
    - Create a file called phpinfo.php
    - In that file, put the following code:
    PHP:
    <?php
    phpinfo
    ();
    ?>
    3. Did you copy the code correctly? Try the code that I posted above.
     
  17. demoniox

    demoniox Registered Member

    Joined:
    Mar 5, 2007
    Messages:
    98
    Likes Received:
    83
    here is another version

    PHP:
    <?php
    header
    ("Content-Type: text/plain");
    $keyword = ( isset($_GET[keyword]) ) ? $_GET[keyword] : "hotel";
    $keyword .= " powered by wordpress";
    $data "";
    for(
    $i 1$i <= 10$i++) {
        
    $url "http://blogsearch.google.com/blogsearch_feeds?hl=en&q=".urlencode($keyword)."&ie=utf-8&num=100&output=atom&start=".(100*$i);
        
    $data = @file_get_contents($url);
        @
    preg_match_all("@".preg_quote('<link rel="alternate" href="')."(.+?)".preg_quote('" type="text/html"></link>')."@si",$data$matches);
        
    $matches[1] = array_unique($matches[1]);
        foreach(
    $matches[1] as $url) echo ( !strstr($url,"blogsearch.google.com") ) ? $url."\n" "";
    }
    ?>
     
  18. raghoo

    raghoo Newbie

    Joined:
    Dec 18, 2008
    Messages:
    38
    Likes Received:
    2
    i copied all code which you gave above
    my server is php5.16 enabled. i am using wordpress script in that server for my website
    i am getting only Keyword: XXXXX
     
  19. Debian

    Debian Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 17, 2009
    Messages:
    711
    Likes Received:
    282
    Occupation:
    Residential Proxies & VPN's
    Home Page:
    Are you putting your preferred keyword(s) in the right spot?