desmondmorris / node-twitter

Client library for the Twitter REST and Streaming API's.
https://www.npmjs.com/package/twitter
MIT License
1.27k stars 237 forks source link

How to get long link , not t.co #290

Closed zeing closed 6 years ago

zeing commented 6 years ago

How to get long link , not ( t.co ) from tweet when streaming

peterpme commented 6 years ago

@zeing https://github.com/Preposterous/twitter-lite

zeing commented 6 years ago

@peterpme how to fix it in your twitter-lite

valeriabarros commented 6 years ago

I don't know if the results are different in the stream, but through search, for each tweet in the list, we have the following structure: statuses.entities.URLs (array) => If there's it's a display and expanded_url, that is not shortened.

maybe that's what you're looking for =]

zeing commented 6 years ago

@valeriabarros yes , i use statuses.entities.URLs as []