A python script to get alexa global rank for a given website or domain.
Note:
As of February 2023, Amazon's Alexa API has been retired. Consequently, I've switched to SimilarWeb API's free-tier for fetching these rankings. When you run the program for the first time, it'll prompt you to create a SimilarWeb account and store the API key to the settings JSON file.
pip install siterank
C:\> siterank google.com twitter.com linkedin.com upwork.com
successfully imported cache db..
found in cache: google.com
found in cache: twitter.com
fetching live: linkedin.com
found in cache: upwork.com
4/4. upwork.com
********************************************************************************
Website Rank
********************************************************************************
google.com 1
twitter.com 5
linkedin.com 17
upwork.com 730