First thank the developers of this great tool!
I am trying to build up a subtitle downloading automation based on splash.
I am deploying a docker file: docker://scrapinghub/splash
When rendering www.google.com, everything works. But it fails when rendering www.zimuku.org. The lua script used is like following:
function main(splash, args)
assert(splash:go(args.url))
assert(splash:wait(5))
return {
html = splash:html()
}
end
First thank the developers of this great tool! I am trying to build up a subtitle downloading automation based on splash.
I am deploying a docker file: docker://scrapinghub/splash When rendering www.google.com, everything works. But it fails when rendering www.zimuku.org. The lua script used is like following:
function main(splash, args) assert(splash:go(args.url)) assert(splash:wait(5)) return { html = splash:html() } end
The error throwing is like:
{ "error": 400, "type": "ScriptError", "description": "Error happened while executing Lua script", "info": { "source": "[string \"function main(splash, args)\r...\"]", "line_number": 2, "error": "http404", "type": "LUA_ERROR", "message": "Lua error: [string \"function main(splash, args)\r...\"]:2: http404" } }
In the developer mode, I witness this:![Screenshot 2022-05-08 213355](https://user-images.githubusercontent.com/12446554/167330951-e13012c7-9dfe-4dea-8ce7-d7975f3cf726.png)
I am a newbie of splash. Please give me some suggestions about how to debug this. Thanks!