ashishkranjan / dabr

Automatically exported from code.google.com/p/dabr
0 stars 0 forks source link

New tweet entities data #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like dabr to do?

It seems that the tweet data is/can now/will soon include an entities 
collection that contains an array of all URLs (including the expanded URL), 
mentions, and hashtags - along with the start/stop index in the tweet to 
replace with whatever links developers want. This would certainly make it 
easier to and standardize even more the method for linkifying (nice word, eh?) 
the tweet text

http://dev.twitter.com/pages/tweet_entities
http://dev.twitter.com/doc/get/statuses/home_timeline

How would you prefer dabr to do it?

Curious to see what you guys think of it. In running a few tests, it seems like 
everything but the expanded URL is working. 

Original issue reported on code.google.com by ldoug...@gmail.com on 22 Aug 2010 at 4:30

GoogleCodeExporter commented 9 years ago
It also reduces dependency on external text processing libraries.  And means 
that links and hashtags work to the "official" standard.  I'm in favour of it.

Original comment by terence.eden on 25 Aug 2010 at 8:42

GoogleCodeExporter commented 9 years ago
Have started work with entities, at the moment expanding short urls, checking 
for media, display thumbnails and then returning the links back. Ideal for 
displaying twitpics sent by Twitter for iPhone users which now insists on using 
t.co links for everything. Plan to add the code shortly.

Original comment by ryancul...@gmail.com on 15 Mar 2011 at 8:01

GoogleCodeExporter commented 9 years ago
At the moment, we're using the Autolink and Extractor libraries which - 
supposedly - Twitter use to generate the entities.

Original comment by terence.eden on 28 Apr 2011 at 3:51

GoogleCodeExporter commented 9 years ago
Have added the expanding short urls which allows for the thumbnails to be 
spotted in t.co, however won't be using entities for @ # http as like Terence 
says the code already does this. We also use the libraries to find links inside 
other bits like profiles, which wouldn't work with entities.

Original comment by ryancul...@gmail.com on 3 May 2011 at 10:10