twitter4j tweet.getText
in
Contributed Library Questions
•
3 years ago
Hello,
I am new at twitter4j but i have to retrieve some tweets quite urgent for my job.
My question is why when i get the text from the tweet it displays only the first for example 100 symbols after that ... and then the source. Is there a possibility to display the whole tweet? I mean the first or first two leading sentences. I am trying this for hours and can't find the reason, but i am also a newbie, so i hope you could help me.
- Twitter twitt = new TwitterFactory().getInstance("username", "pass");
- Query query = new Query("Merkel");
- for(int i=1; i<=2; i++)
- {
- query.setPage(i);
- QueryResult result = twitt.search(query);
- List<Tweet> tweets = result.getTweets();
- System.out.println(tweets.size());
- for(Tweet tw: tweets){
- System.out.println(tw.getText());
- }
- }
1