This is the code I used for my project of mining Weibo, the popular Chinese microblogging service, to analyze the mentality of young Chinese (i.e., the post-80s). The project and the results are documented here.
Included are both the Python code used for scraping the users and their tweets from the website and the R code used for the analysis.