crawlingPeopleRelatedWeiboOriginalPost(pid, person_name)


Extract people related original weibo post from sina weibo and insert to database.


Parameter Necessity Type Description
pid required int person id
person_name required string person name need to crawl


Parameters Type Description
status string show the crawler running status


  1. masterStart(). Create multiple processes to begin crawling data.
  2. wapLogIn(). Log in sina Account.
  3. weiBoWapSearch(person_name, pid). Use person name and person id to search person related weibo
    • extractTopic(person_name, person_id ). Extract weibo text and insert to database.

Related Work


Issues About The Crawler

  1. Sina Weibo API is not not so effective, it need to be authorized but the crawler would not pass sina's examine and verify.
  2. Using browser’s cookies to log in sina account.
  3. Using the url instead of to crawl data, because the latter one’s tweet data is sealed in javascript and it’s difficult to extract.
  4. Using multiple proxies to prevent sina block our ip.
  5. For speeding up the crawler, using multiple processes and accounts.
projs/clans/docs/crawlingpeoplerelatedweibooriginalpost.txt · Last modified: 2014/02/04 18:31 by yangjunfeng0317     Back to top