This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

googlescore

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

googlescore

Post by Thunderdome »

In the tcl archive I downloaded googlescore.tcl and tried to use it...
It does not give any error, it simply does not display a thing...

Does anybody know if it still works?
Happy New Year
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

##
#
# Requirements:
#
# 1) Eggdrop1.1.5-Eggdrop1.6.x
# 2) egghttp.tcl v1.0.0 or higher (loaded before this script,
#                                  can be downloaded from www.TCLScript.com)
#
##
#
# Installation:
#
# Place script in your scripts directory
# Edit the Configuration options below
# Add the line: source scripts/googlescore.tcl to your eggdrop config
# (after the source line containing egghttp.tcl)
# Done.
#
##
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

this thing must be pretty ancient, requiring 1.1.5 and egghttp... I wonder how did they know about Google, it emerged later ;)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Is not 'they' because is just one guy. The 'last modified' date of that script is 03/16/03, when did google released the googlescore?
Once the game is over, the king and the pawn go back in the same box.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what's googlescore?
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

demond wrote:what's googlescore?
Script: googlescore.tcl v1.0
Author: strikelight ([sL] @ EFNet)
Requires: eggdrop1.1.5-eggdrop1.6.x

Description: retrieves the google 'score' google has
for a specified site.
BTW, 'they' = StrikeLight
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

so that so-called "googlescore" is simply the total number of pages Google has referring to the command argument
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
t
thecoollamer
Voice
Posts: 1
Joined: Mon Feb 11, 2008 8:36 pm
Contact:

googlescore.tcl

Post by thecoollamer »

In case this wasn't clear from the script description :wink:

This script runs a link:URL search on Google.com and displays the number of pages that link to the URL in the query.

For example, Google search "link:www.vedetta.com" (without the quotes)
http://www.google.com/search?q=link%3Awww.vedetta.com

It is important because it affects the Google Page Rank of the URL, thus its position in Google search results.

How Google Score works is not the point of this post ( although i would be happy to discuss it if you catch me in irc://irc.undernet.org/webmaster ).

On the other hand, how googlescore.tcl works is the point. There is a modification that needs to be made in order for the script to work with the new Google.com page.

Replace this code:

Code: Select all

  foreach line [split $buffer \n] {
    if {[string match "*Results*of about*.*" $line]} {
      regexp {of about <b>([^<]*)</b>} $line garb score
      break
    }
  }
With this:

Code: Select all

  foreach line [split $buffer \n] {
    if {[string match "*Results*of about*.*" $line]} {
      regexp {of about <b>(.*?)</b>} $line garb score    
      break
    }
    if {[string match "*Results*of*.*" $line]} {      
      regexp {of <b>(.*?)</b>} $line garb score      
      break
    }
  }
The Google Score also varies by country. You would have to replace the Google URL and the string match to reflect the language of the desired country.
The Webmaster Chat Room irc://irc.undernet.org/webmaster
The Webmaster Web Site http://www.vedetta.com
Post Reply