This Script Is PIMP! Google Blog Search (Automated)

Debian

BANNED
Joined
Feb 17, 2009
Messages
1,270
Reaction score
577
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 ================
 
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.
 
Sounds cool I'll give it a drive around the block thanks for the keys I promise I wont wreck it boss
 
I get:
Parse error: syntax error, unexpected T_STRING in
on line 5, the keywordstring

Looks awesome though
[edit]nvm, got it, just need to replace some string terminators
 
Last edited:
I get: on line 5, the keywordstring

Looks awesome though
[edit]nvm, got it, just need to replace some string terminators

Can you explain please or post the working code? I'm getting teh same T string error
 
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($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(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 ================
 
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($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
        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...
 
Last edited:
i am getting only ============ Start PHP Script ================ ============ End PHP Script ================ instead of list any one help
 
i am getting only ============ Start PHP Script ================ ============ End PHP Script ================ instead of list any one help

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.
 
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" : "";
}
?>
 
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
 
Are you putting your preferred keyword(s) in the right spot?
 
Back
Top