SEOquake
Official homepage

twitter.com

Writing parameters for SEOquake

To begin with, let us say few words about what SEOquake is. SEOquake is an extension for Mozilla Firefox browser which allows getting different parameters values for web page or random link on the fly. For example pagerank value, the number of indexed pages of web site in different search engines, rating in del.icio.us and technorati, etc. Moreover, SEOquake is an expandable extension. That means, if you are interested in some uncommon parameter, you can add it in SEOquake and it will be processed just as common one.

Let us try to find out what SEOquake parameter is like and how to make your own parameter.

All parameters in SEOquake can optionally be divided into two categories: parameters-values and parameters-links. Parameter-value is some value, calculated for a given link, for example, already mentioned pagerank. That is SEOquake requests for some web page, looks for a required value a shows it to a user as the parameter value. For parameter-link SEOquake just shows this link as a value. For example "whois" parameter is a parameter-link.

Parameters in SEOquake can be presented as a record with a few standard fields.

Parameter example:

[NAME]=Alexa rank
[TITLE]=Rank
[URL_R]=http://xml.alexa.com/data?cli=10&dat=nsa&ver=quirk-searchstatus&uid={installdate}&userip={localip}&url={domain|encode}
[URL_S]=http://alexa.com/data/details/traffic_details?q=&url={domain}
[REGEXP]=<POPULARITY URL=".+"? TEXT="(\d+)"

Let us discuss probable fields in details:

[URL_S], [REGEXP] and [ALTREGEXP] fields are optional and can be omitted. If the parameter does not contain any regular expressions then it is considered to be a link.

There are plenty of articles about how to write regular expressions, that is why I will not pay much attention to this here. You can use Google or this link.

Let us take a closer look at [URL_R] and [URL_S] fields. Usually parameters are processed for a certain link or its part (for example domain). When we are trying to find out the number of web pages indexed by Yahoo searching engine, we should pass to the searching engine the domain of a web site we are interested in. For this you can use special tags in [URL_R] and [URL_S] fields, which will be changed to values by SEOquake before the request or before the representation.

Let us take [URL_R] field of Alexa Rank parameter. It is a link

http://xml.alexa.com/data?cli=10&dat=nsa&ver=quirk-searchstatus&uid={installdate}&userip={localip}&url={domain|encode}

with {installdate}, {localip} and {domain|encode} tags, which will be replaced with SEOquake installation date, your ip-address, and processing web site domain respectively before the request to Alexa.

SEOquake is able to process following special tags:

and link tags:

Also you can specify encode modifier in tags, which means if the special and non-English symbols will be coded or not in tag value into their url-representation.

Now let us move from theory to practice and write some new parameters.

At first let us try to add something from Web Developer Toolbar to SEOquake, namely parameter-link to w3c validation of web page. Open settings of SEOquake, Parameters TAB and press the "New" button. In appeared window fill the fields of our parameter this way:

[NAME]=W3 Validator
[TITLE]=validate
[URL_R]=http://validator.w3.org/check?uri={url|encode}
[REGEXP]=

Leave [REGEXP] field blank, since we are making parameter-link not parameter-value.

Make sure that SEOquake and Seobar or Seotoolbar are on, go to any page and see that in Seobar or in Seotoolbar a new link "validate" have appeared, left click on that link will bring us to the results of this page validation.

Now let us make something more difficult. A typical situation when being on a web page of a web site you need to find out Google Pagerank value for this web site domain. Congratulations, now it is not a problem any more!

Now create other new parameter:

[NAME]=Google Topdomain pagerank
[TITLE]=T PR
[URL_R]=http://toolbarqueries.google.com/search?client=navclient-auto&hl=en&ch={gchecksum|{scheme}://{domain}}&ie=UTF-8&oe=UTF-8&features=Rank&q=info:{scheme}://{domain|encode}
[REGEXP]=Rank_.*?:.*?:(\d+)

Once again make sure that SEOquake and Google Plugin are on, go to Google web page, make a request, in the results to which there will be links not to the main pages of web sites (for example, inurl:modules.php ;) ) as you can see SEOquake shows domain PR value for each link. And how do the French say, Voila!

So in order to create necessary parameter you do not need to wait until the developers of SEOquake will make it for you. You just need to understand how does address of the web page, on which required value is presented, is defined. And how to required value get it from there (how to write a regular expression). That is all.

To be honest, you have another unique opportunity. You may ask me to write a parameter for you. For free! But I can not guarantee high efficiency. :)

Russian original text