Skip to content

hochzehn/alexa-ranking-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alexa-ranking-parser

Access list of Alexa top sites in CLI, via Docker.

Simple wrapper around the free list of the top one million website ranked by Alexa, as described here and available for download here.

Usage

docker run --rm hochzehn/alexa-ranking-parser 10

Returns the first 10 domains on the list, e.g.

1,google.com
2,youtube.com
3,facebook.com
4,baidu.com
5,yahoo.com
6,wikipedia.org
7,amazon.com
8,twitter.com
9,qq.com
10,live.com

Further processing

You can process the output in Bash with a loop like the following:

#!/usr/bin/env bash
FILE="alexa.csv"

docker run --rm hochzehn/alexa-ranking-parser 10 > "$FILE"

while read row; do
  values=(${row//,/ })

  rank=${values[0]}
  domain=${values[1]}

  echo "$domain is ranked #$rank"
done < "$FILE"

About

Access list of Alexa top sites in CLI, via Docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages