status.getHashtagEntities() not retrieving all hashtags from tweet
Twitter4J is an open-sourced, mavenized and Google App Engine safe Java library for the Twitter API which is released under the Apache License 2.0.
Brought to you by:
hationlove
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?
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.
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