Menu

#324 status.getHashtagEntities() not retrieving all hashtags from tweet

open
nobody
None
2020-06-28
2019-04-04
Anonymous
No

Originally created by: madhukar559

status.getHashtagEntities() not retrieving all hashtags from tweet.I have been using 4.0.7 version jar all along.

Discussion

  • Anonymous

    Anonymous - 2019-04-04

    Originally posted by: krallus

    One of my related changes was pulled into the 4.0.7 release but I'm not seeing any problem with hash tag entities in my projects that use that release. Could you please include a precise test, or list of steps, that recreates the problem?

     
  • Anonymous

    Anonymous - 2020-06-28

    Originally posted by: orangecoding

    I have the same issue. I don't have any crazy setup here, I have just created a twitter stream and listen to some hashtags like so:

    stream .addListener(new TwitterStreamingStatusListener()) .filter(new FilterQuery().track("#someHashTag");

    Every 2nd tweet misses the hashtag, because the status.getText() returns something like this:
    But the TRUE superheroes are all the frontline health care workers, scientists, and Gl…

    See the … at the end? This means not the whole tweet is being fetched. I can imagine this happens when the tweets are > 140 chars. However, I tried it myself with a long tweet, there it works.

     
  • Anonymous

    Anonymous - 2020-06-28

    Originally posted by: orangecoding

    Ah. I just found out why. @madhukar559 This might also be helpful for you. If the hashtag entities is empty. check if the tweet was a retweet or quoted tweet. if this is the case, that hashtags are either in the quoted or retweetet status

     

Log in to post a comment.