Skip to content

Instantly share code, notes, and snippets.

View adarshakshat's full-sized avatar
💻
Building Projects

Adarsh Akshat adarshakshat

💻
Building Projects
View GitHub Profile
@masnun
masnun / alexa.py
Created July 24, 2012 16:02
Python One-liner to get your site's Alexa Rank
#!/usr/bin/env python
import urllib, sys, bs4
print bs4.BeautifulSoup(urllib.urlopen("http://data.alexa.com/data?cli=10&dat=s&url="+ sys.argv[1]).read(), "xml").find("REACH")['RANK']