简体   繁体   English

查看HTML中的Twitter注释

[英]View twitter comments in html

I am trying to view Twitter comments in the source html, 我正在尝试在源HTML中查看Twitter评论,

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? 我知道我可以使用jquery查看它们,但是是否有另一种更改url的方法,以便可以在源代码中查看评论? As I am using an application that is dependant on the url being hard coded. 当我使用的应用程序依赖于被硬编码的url时。

Thanks in advance. 提前致谢。

If by comments you mean statuses , they're hidden under the data- attributes of various elements. 如果用注释表示状态 ,则将它们隐藏在各种元素的data-属性下。 You should consider using the official API instead: https://dev.twitter.com/ . 您应该考虑使用官方API代替: https : //dev.twitter.com/

If you really, really can't do that, you could try the mobile version ; 如果您确实无法执行此操作,则可以尝试移动版本 however, you should never rely on parsing sites when there is an API available. 但是,如果有可用的API,则永远不要依赖于解析站点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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