Splash不呈现Java脚本

时间:2018-08-23 09:56:40

标签: javascript scrapy-splash splash-js-render

我的问题与这篇文章密切相关:Splash do not render the whole page

我无法以能够呈现以下网站的动态部分的方式配置启动:

https://www.wunderground.com/history/daily/ro/slava-cerchez%C4%83/LRTC/date/2018-8-03?cm_ven=localwx_history

The page looks like this

But it should look like this

这是启动脚本:

function main(splash, args)
  assert(splash:go(args.url))
  assert(splash:wait(5))
  splash:set_viewport_full()
  splash.private_mode_enabled = false
  splash.indexeddb_enabled = true
  splash.html5_media_enabled = true


  return {
    html = splash:html(),
    png = splash:png(),
    har = splash:har(),


  }
end

我已经尝试增加等待时间并禁用私有模式。如果有人可以提示如何正确配置启动,以便呈现Java脚本部分,我将感到非常高兴。

0 个答案:

没有答案