NullPointerException
NullPointerException

Reputation: 37701

How to simply read tweets from any twitter user? (without loggin on twitter)

I am trying to read tweets from a dinamically given twitter user in a Android app.

I found here (stackoverflow) and at google some ways to connect to twitter, but i didn't find a simply way to obtain the tweets of a given user without a loggin on twitter. I found some ways to do something similar with java, but using license protected librarys, and also i need to know the specific way with android (not java), without using license protected librarys.

There is a way to do it?

Upvotes: 2

Views: 5007

Answers (2)

Tom van der Woerdt
Tom van der Woerdt

Reputation: 29985

Don't bother using libraries, just grab the data from the web.

Just replace screen_name with any non-protected user and it'll work.

Upvotes: 3

andoni90
andoni90

Reputation: 1068

Use Twitter4j library and the "Search for tweets" example. You will not need to log in, just put the username whose tweets you want to read in the query and that's it.

Another way, if you dont want to use specific libraries, would be parsing the twitter page, with HtmlParser.

Upvotes: 2

Related Questions