文章目录
  1. 1. Accout setting
  2. 2. Limitation for friends
  3. 3. Limitation for statuses

Accout setting

Make sure you have properly set your account for open.weibo.com

  • Be careful about the setting of callback url

Limitation for friends

Weibo doesn’t allow user to retrieve any personal information back except himself and the one who has authorized himself to DataSpeaker. Which means DataSpeaker can’t collect the personal information for user’s followers and friends.

  • The good news is if we use weibo’s official SDK to interact with weibo API server, it will return 30% of the result. For example, we ask API server for 100 records, then API server will return 30 records if we use its official SDK.
  • The bad news is we will lose some data even if we keep fetching the personal information for user’s friends and followers until there is no new records return.

For example, the total amount of my friends is 257 and finally I got the personal information for 240 friends

Limitation for statuses

Weibo only allows user to retrieve his latest 5 statuses back. Without the data of statuses, we can’t do analysis for statuses.

Here is tricky workaround to get user’s statuses. Since its process is rather complicated, DataSpeaker doesn’t expose this functionality to users.

  • home_timeline will return the statuses of user and his friends and there is no limitation on this API
  • We need to create a brand new weibo account and only follow current user. Now current user is the only friend for the new one
  • create a new web application on open.weibo.com for the new one and run DataSpeaker with the new one’s account (key+secret)
  • Use home_timeline to retrieve the statuses back for the new one and his friends. Since the new one doesn’t have any statuses and current user is his only friend, the statuses returned by home_timeline are all belonging to current user
  • Switch to current user and do analysis for his statuses

The limitation for the workaround is that only the statuses posted after 2013 will be returned which means we will miss a lot of statuses.

文章目录
  1. 1. Accout setting
  2. 2. Limitation for friends
  3. 3. Limitation for statuses