Reply
Old 11-21-2008, 03:36 PM Number of BackLinks
Galaxian's Avatar
Dingleberry!

Posts: 728
Name: Rich
Location: United Kingdom
Trades: 0
How'd one get the number of backlinks ones site has? Is there anywhere I can nab the backlink count from for a specific site from Google or somewhere with file_get_contents?
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
 
When You Register, These Ads Go Away!
Old 11-21-2008, 04:29 PM Re: Number of BackLinks
Experienced Talker

Posts: 32
Trades: 0
Something like this? Display Google Backlinks with PHP
__________________
xhtmlme.com Professional PSD to XHTML coding services
tsiger is offline
Reply With Quote
View Public Profile
 
Old 11-21-2008, 04:32 PM Re: Number of BackLinks
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,513
Name: Dan
Location: Swindon
Trades: 0
I doubt it...

I would think gooogle (and other large SE's) only generate the number of backlinks becasue they have indexed the site which is linking to it. so they see SiteA which links to SiteB and while indexing SiteA they make a note that SiteB has another backlink.

I dont think i have seen this information displayed anywhere publicly which would enable you to nab it

Altho it would be rather cool if google made an API which u could use to get info about a site, Google basically has a ton of info about every site on the internet (virtually) if only eh... lol

EDIT: I took to long posting.. im not sure how that snippet posted would work not run it but i dont see how it would get the info
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Last edited by dansgalaxy; 11-21-2008 at 04:34 PM..
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 11-22-2008, 09:57 AM Re: Number of BackLinks
Galaxian's Avatar
Dingleberry!

Posts: 728
Name: Rich
Location: United Kingdom
Trades: 0
Simplified the code a bit

PHP Code:
function google_backs($url){ 
    
$total file_get_contents('http://www.google.com/search?q=link%3A'.$url); 
    
$match_expression '/of \<b\>(.*)\<\/b\> linking to/'
    
preg_match($match_expression,$total,$matches);
    return 
$matches[1]; 

However no matter whether I use my simplified version or the original, it seems to bring up something incorrect... and totally different to what I see when I look at the result.

For example, for one of my sites it said it had only 4 backlinks, but when I try the google query it shows a larger number..

Any ideas?
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 11-22-2008, 09:59 AM Re: Number of BackLinks
Experienced Talker

Posts: 32
Trades: 0
As the author states:
"This number will vary from one datacenter to another or from time to time due to Google's updates on links and their data."
__________________
xhtmlme.com Professional PSD to XHTML coding services
tsiger is offline
Reply With Quote
View Public Profile
 
Old 11-22-2008, 10:06 AM Re: Number of BackLinks
Galaxian's Avatar
Dingleberry!

Posts: 728
Name: Rich
Location: United Kingdom
Trades: 0
I know my sites also have way more links than google states.
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 11-22-2008, 08:19 PM Re: Number of BackLinks
chrishirst's Avatar
Super Moderator

Posts: 21,616
Location: Blackpool. UK
Trades: 0
Quote:
I know my sites also have way more links than google states.
Google's "link:" search has NEVER been remotely "accurate"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Number of BackLinks
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13696 seconds with 13 queries