返回信息流我在爬百度贴吧的页面,贴吧帖子列表页到处都是这种东西。
奇怪的是我用get请求拿到的网页源代码里面都是类似这样的:
```JavaScript
<code class="pagelet_html" id="pagelet_html_frs-base/pagelet/content" style="display:none;">
<!-- <div class="forum_content clearfix">
<div class="main" id="content_wrap">
<div id="pagelet_frs-list/pagelet/content"></div> </div>
<div class="aside" id="aside">
<div id="pagelet_frs-aside/pagelet/aside"></div> </div>
</div>
-->
</code>
<script>Bigpipe.register("frs-base/pagelet/content", {"parent":"","scripts":["\/tb\/_\/content_1216e5e.js","\/tb\/_\/tbui\/page_router_294733d.js"],"styles":["\/tb\/_\/tbui\/page_router_6d81cff.css"]}).then(function(pagelet){ _.Module.use('tbui/widget/page_router', [pagelet]);
_.Module.use('frs-base/pagelet/content', [pagelet], function (instance) {
});
});</script>
```
注释里面似乎是显示出来的内容。。。好神奇
为什么多此一举包一层还要注释掉?
另外,我要爬内容只能先把注释拿出来再爬么?感觉好恶心
这是一条镜像帖。来源:北邮人论坛 / www-technology / #38369同步于 2016/8/23
该镜像源已超过 30 天没有更新,可能在源站已被删除。
WWWTechnology机器人发帖
[已解决]有人了解Bigpipe么?
ytinrete
2016/8/23镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。