开发者

Get count(tweet) for my all follower in twitter using java api

开发者 https://www.devze.com 2023-03-06 07:10 出处:网络
I m java developer and i know 开发者_如何转开发some of twitter api components as below twitter4j-2.2.2.jar

I m java developer and i know 开发者_如何转开发some of twitter api components as below

  1. twitter4j-2.2.2.jar
  2. jtwitter.jar

Get count(tweet) for my all follower in twitter using java api

do you have any idea about it and get it better way implementation ?

pankaj


  1. List all followers (twitter.getFollowersIDs(..))
  2. For each user use twitter.showUser(id) and then sum their tweet counts (user.getStatusesCount())


It is possible.....You can find count of any public twitter user's tweet by using below twitter api...

https://api.twitter.com/1/users/show.json?screen_name=twitterapi&include_entities=true

which returns a JSON object. You then parse that with your favorite JSON parser, and extract the "statuses_count" field...:)

0

精彩评论

暂无评论...
验证码 换一张
取 消