copyed from http://michaelliao.github.io/sinaweibopy/ for self-learning