Giter VIP home page Giter VIP logo

Comments (3)

Jakob-Bach avatar Jakob-Bach commented on July 24, 2024

Hi,
I'm not affiliated to Twitter and/or the maintainers of this repo, but I faced the same problem as developer. The problem seems to be related to retweets, because in theory they might be longer than the usual 140 characters, as they also contain the RT@<<user's screenName>>: part in front of the original tweet, but in reality they seem to be truncated at the end to get a length <= 140 characters. I solved it by checking isRetweet() in the listener which processes the tweets and if yes, using
"RT @" + status.getRetweetedStatus().getUser().getScreenName() + ": " + status.getRetweetedStatus().getText() instead of status.getText()

from hbc.

cristobal-wetzig avatar cristobal-wetzig commented on July 24, 2024

@Jakob2014uafmx Thats a nice little hack!

Does anybody know how to actually add a parameter to the streamhandler so you send full_text for example?

from hbc.

andypiper avatar andypiper commented on July 24, 2024

Extended Tweets in the Streaming API will contain an extended_tweet segment containing a full_text field.

from hbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.