简体   繁体   中英

View twitter comments in html

I am trying to view Twitter comments in the source html,

however on viewing, the comments are not present,

I know I can view them using jquery but is there an alternative way of changing the url so that I can view the comments in the source? As I am using an application that is dependant on the url being hard coded.

Thanks in advance.

If by comments you mean statuses , they're hidden under the data- attributes of various elements. You should consider using the official API instead: https://dev.twitter.com/ .

If you really, really can't do that, you could try the mobile version ; however, you should rely on parsing sites when there is an API available. 依赖于解析站点。

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