我需要解析一个站点,但内容是由Javascript动态生成的。有没有办法解析javascript使用Jsoup生成的内容?
<form method="post" action="../ScreenResolution.aspx" id="form1">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZHfXW6EsrLhbTy9klStsYFtE87Sw" />
<script src="/js/framework/WorkWithCookies.js" type="text/javascript"></script><script type="text/javascript">var iScreenWidth = window.screen.width; var iOutcomesGroupsPerRow = 1; if (1280 < iScreenWidth) { if (1680 < iScreenWidth) iOutcomesGroupsPerRow = 3; else iOutcomesGroupsPerRow = 2; } var objClassInstance = new WorkWithCookies('lsoutcomesgroupsperrow'); objClassInstance.WriteCookie(iOutcomesGroupsPerRow, null, null); window.location.href = window.location.href;window.location.reload();</script>
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="2E0D1D88" />
</form>