Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网站,它的内容是使用 ajax 在客户端上动态创建的,我想为谷歌爬虫创建一个 HTML 快照。 由于我使用 ASP.net,我的想法是在服务器上创建一个 WebBrowser 控件的实例,每当 google 传递 '_escaped_fragment_' 参数时,然后在服务器上加载我的动态页面,然后将创建的页面返回给 google。 我有两个问题: 1.有没有更好的方法来做到这一点? 2.如果没有更好的方法来做到这一点,我应该如何实现呢?我应该使用 http 处理程序吗?
这可能已经晚了。您是否尝试过 NHTMLUNIT(它是 HTMLUNIT 的包装器)?