Alexa says I’m 10,431,271 globally

Look at me, I'm pop, pop, popular!
Look at me, I’m pop, pop, popular!

I never created this Daybook way back when with the idea that I would be the next internet sensation, or the place to check out in your web browsing every day because it was just the place to go for information/fun/etc.  Edziu’s Daybook is just a collection of random thoughts and ideas, interesting (to me) technology snips and an inner snapshot of feelings/emotions that is my life.  Basically, I write it because it interests, me.  So, I can go back to it any time, read/reflect and dig up any little snippet and give it an evaluation to time or place.  With that said, Alexa says I’m 10,431,271 globally.

So, enter Alexa.  Alexa is the global ranking behemoth that is in most basic terms is where you rank in the world on the internet.  Alexa says I’m 10 million, 431 thousand, 200 and seventy-one ranked globally.  Alright, okay and like I said, it’s just an average journal web-site (I hate the term Blog, sounds like a bowel movement log to me)that serves no purpose in the vastness of the internet with millions of other sites that serve a lot of good information to those on the other end of the scale that serve little valuation in the international database of all things human.  I can dream and wonder how my life would be different if my Daybook was ranked say 10,000 or 5,000 or even top 100.  I’d say to myself, what boring lives you have if you continue to follow mine.

Alexa rank: A script to get the rank for any site


What is Alexa rank?

Alexa collects statistics about visits by internet users to websites through the Alexa Toolbar. Based on the collected data, Alexa computes site ranking. By examining the Alexa rank of a site, you can get a rough idea of how popular the site is. Many argue that Alexa rank is misleading but it has its uses.

The Alexa rank script

You can find out the Alexa rank for any site by using this page. However, if you want to programatically get the Alexa rank, you can do it using this script.

Get the Alexa rank script

Using the script

After downloading the script, give it execute permission by doing this. You will need to have Python installed.

chmod +x
$ ./
popularity rank = 2
reach_rank = 1

$ ./
popularity rank = 7
reach_rank = 6

$ ./
popularity rank = 557287
reach_rank = 482289

$ ./
popularity rank = -1
reach_rank = -1

How does the script work?

If you make a http request for the following url,$URL

after replacing $URL with the url of the site for which you need the Alexa rank, the following XML response is sent out. I tried with “”.

The script parses the XML response and extracts POPULARITY/@TEXT and REACH/@RANK.