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.
我正在使用 HtmlUnit 创建一个网络爬虫。我正在处理的网站充满了 iframe,但 HtmlUnit 不会自动加载 iframe 的内容。
我怎样才能做到这一点,或者通过 DOM 设置 iframe 内容?
也许它是加载到您的 iframe 中的另一个网站?在这种情况下,由于同源策略,您无法获取内容。