简体   繁体   中英

Rendering tweets on the server side

Is there a library that would take the API response and render tweets server-side in accordance with twitter ddr ?

I'm concerned that I'm reinventing the wheel when processing tweet entities , parsing the timestamp and rendering author name/avatar/@username. Twitter's widget.js seems to be very client side focused as-is; I haven't found the script's version that's documented and licensed for modified use on the server.

I'd rather avoid rendering on the client when it could be be pre-rendered and cached - just showing the latest tweet from a given account.

您应该看一下twitter-text ,它可以在服务器端使用(作为node.js包),您可能可以使用它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM