hi
i need to show the tweets from twitter ,no posting , i have the keys , username password
.What is the steps for retrieveing the tweets from twitter ?
hi i need to show the tweets from twitter ,no posting , i have
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you’ll want to choose how you need to download the twitter feed. Twitter has a couple of different types of ways you can access the feed. The most common way to do it would just a one-time access of the XML feed. They do have a Streaming API if you might be interested in that. For accessing that, you might want to use an existing project like TweetStream4J. Even if you’re using the regular method, I’ve used Twitter4J and it is pretty solid.
Twitter4J is probably well-suited for your needs, but in case you want to write your own Twitter wrapper…
Twitter also has different feeds, e.g., the public timeline, the friends timeline, the list goes on… you need to select which of these you want to access. When most people login, they see their friends timeline.
Also, each timeline can be returned in different formats: for example: RSS, Atom, JSON, and Twitter’s own XML format. From here, your approach can vary depending on what your needs are. JSON and XML are probably the most general routes to take for accessing the timeline. You’ll need to choose which file format you’ll use and an accompanying library which can decode that file format (or write one yourself).
If you take the XML route, you’ll probably want to look at using SAX or DOM to decode the response. If you take the JSON route, you’ll likely want to check out GSON.