Is There A Script That Counts OBL's?

sunseven

Power Member
Joined
Aug 5, 2009
Messages
653
Reaction score
407
Wanted to know if anyone knew of a program where you can paste a bunch of url's and the program would scan each and tell you:

1.) how many out bound links are on each page?
2.) the PR of the page
3.) The title tag of the page
4.) And would be even sweeter if you could input a url or anchor text to search for. So it would help me in checking to see if my backlinks are live.

This would save me sooo much time. Let me know if anyone knows of any such wonder tool.
 
Wanted to know if anyone knew of a program where you can paste a bunch of url's and the program would scan each and tell you:

1.) how many out bound links are on each page?
2.) the PR of the page
3.) The title tag of the page
4.) And would be even sweeter if you could input a url or anchor text to search for. So it would help me in checking to see if my backlinks are live.

This would save me sooo much time. Let me know if anyone knows of any such wonder tool.
Bump for you!
looking for something like this as well/
 
Happy Holidays from blackhatzen:
Code:
<?php
	if(isset($_POST['urls'])){
		$urls = explode("\n",$_POST['urls']);
	}
	
	if(isset($_POST['contains'])){
		$contains = preg_quote($_POST['contains'], "/");
	}
?>
<html>
	<head>
		<title>blackhatzen obl check</title>
	</head>
	
	<body>
		<form action="#" method="POST">
			<table>
				<tr>
					<td width="50px"><strong>URLs:</strong></td>
					<td><textarea name="urls" cols="50" rows="15"></textarea></td>
				</tr>
				
				<tr>
					<td width="50px"><strong>Contains</strong></td>
					<td><input type="text" name="contains" size="100" /></td>
				</tr>
				
				<tr>
					<td colspan="2"><input type="submit" /></td>
				</tr>
			</table>
		</form>
		
		<?php 
			if(isset($urls)){
				echo <<<HTML
			<table border="1" width="500px">
HTML;
				foreach($urls as $url){
					$server = explode("/", $url);
					$server = $server[2];
					
					$html = file_get_contents($url);
					$dom = new DOMDocument();
					@$dom->loadHTML($html);
					$xpath = new DOMXpath($dom);
					
					$elements = $xpath->query("//head/title");
					if(isset($elements)){
						foreach($elements as $element){
							$title = $element->nodeValue;
						}
					}

					unset($element);
					unset($elements);
					
					$elements = $xpath->query("//a");
					if(isset($elements)){
						$count = 0;
						$contains_count = 0;
						foreach($elements as $element){
							$link = $element->getAttribute("href");
							if(!preg_match("/$server/i", $link) && preg_match("/^http/i", $link)){
								if(isset($contains)){
									if(preg_match("/$contains/i", $link)){
										$contains_count++;
									}
								}
								
								$count++;
							}
						}
					}
					echo "
					<tr>
						<th>URL</th>
						<td>$url</td>
					</tr>
					<tr>
						<th>Title</th>
						<td>$title</td>
					</tr>
					
					<tr>
						<th>OBL</th>
						<td>$count</td>
					</tr>
					
					<tr>
						<th>Contains</th>
						<td>$contains_count</td>
					</tr>";
					
					unset($xpath);
					unset($dom);
				}

				echo <<<HTML
			</table>
HTML;
			}
		?>
		
	</body>
</html>
One URL per line, must be a proper URI (like http://blahblah.com/). Contains URL must also be a proper URI (like http://blahblah.com/). Doesn't check for PR, because PR is worthless. Copy and paste into a .php file and upload to server.

I threw this together in like 10 minutes, so there are bound to be some bugs. Feel free to make with the hackety-hack for extra features. Try and sell this and Santa will crap in your mouth while you sleep.

osh out.
 
i dunno if there's any other free script out there, but Market Samurai pretty much doing all of you asked for...
 
SeoQuake plugin for firefox will also do all that:

Code:
https://addons.mozilla.org/en-US/firefox/addon/3036
 
Happy Holidays from blackhatzen:
Code:
<?php
    if(isset($_POST['urls'])){
        $urls = explode("\n",$_POST['urls']);
    }
    
    if(isset($_POST['contains'])){
        $contains = preg_quote($_POST['contains'], "/");
    }
?>
<html>
    <head>
        <title>blackhatzen obl check</title>
    </head>
    
    <body>
        <form action="#" method="POST">
            <table>
                <tr>
                    <td width="50px"><strong>URLs:</strong></td>
                    <td><textarea name="urls" cols="50" rows="15"></textarea></td>
                </tr>
                
                <tr>
                    <td width="50px"><strong>Contains</strong></td>
                    <td><input type="text" name="contains" size="100" /></td>
                </tr>
                
                <tr>
                    <td colspan="2"><input type="submit" /></td>
                </tr>
            </table>
        </form>
        
        <?php 
            if(isset($urls)){
                echo <<<HTML
            <table border="1" width="500px">
HTML;
                foreach($urls as $url){
                    $server = explode("/", $url);
                    $server = $server[2];
                    
                    $html = file_get_contents($url);
                    $dom = new DOMDocument();
                    @$dom->loadHTML($html);
                    $xpath = new DOMXpath($dom);
                    
                    $elements = $xpath->query("//head/title");
                    if(isset($elements)){
                        foreach($elements as $element){
                            $title = $element->nodeValue;
                        }
                    }

                    unset($element);
                    unset($elements);
                    
                    $elements = $xpath->query("//a");
                    if(isset($elements)){
                        $count = 0;
                        $contains_count = 0;
                        foreach($elements as $element){
                            $link = $element->getAttribute("href");
                            if(!preg_match("/$server/i", $link) && preg_match("/^http/i", $link)){
                                if(isset($contains)){
                                    if(preg_match("/$contains/i", $link)){
                                        $contains_count++;
                                    }
                                }
                                
                                $count++;
                            }
                        }
                    }
                    echo "
                    <tr>
                        <th>URL</th>
                        <td>$url</td>
                    </tr>
                    <tr>
                        <th>Title</th>
                        <td>$title</td>
                    </tr>
                    
                    <tr>
                        <th>OBL</th>
                        <td>$count</td>
                    </tr>
                    
                    <tr>
                        <th>Contains</th>
                        <td>$contains_count</td>
                    </tr>";
                    
                    unset($xpath);
                    unset($dom);
                }

                echo <<<HTML
            </table>
HTML;
            }
        ?>
        
    </body>
</html>
One URL per line, must be a proper URI (like http://blahblah.com/). Contains URL must also be a proper URI (like http://blahblah.com/). Doesn't check for PR, because PR is worthless. Copy and paste into a .php file and upload to server.

I threw this together in like 10 minutes, so there are bound to be some bugs. Feel free to make with the hackety-hack for extra features. Try and sell this and Santa will crap in your mouth while you sleep.

osh out.

Hello Oldenstyle,

Tried to run the script but it's not producing any results for me. Can you offer some additional help? Your efforts are much appreciated.

In regards to Market Samarai, someone else mentioned the ability of it to do what was outlined but not the case. No where does it show you outbound links just inbound. SEO Quake plugin I use frequently as well and there is no way to automatically add a list of urls and get back such data. Thanks to everyone else for the attempts.
 
Back
Top