Python 如何在scrapy splash中设置飞溅超时?

Python 如何在scrapy splash中设置飞溅超时?,python,scrapy,scrapy-splash,splash-js-render,Python,Scrapy,Scrapy Splash,Splash Js Render,我习惯于抓取网页,并在docker上运行splash服务 公共: docker run -p 8050:8050 scrapinghub/splash --max-timeout 3600 但我有一个504错误 "error": {"info": {"timeout": 30}, "description": "Timeout exceeded rendering page", "error": 504, "type": "GlobalTimeoutError"} 虽然我尝试添加splash

我习惯于抓取网页,并在docker上运行splash服务

公共:

docker run -p 8050:8050 scrapinghub/splash --max-timeout 3600
但我有一个504错误

"error": {"info": {"timeout": 30}, "description": "Timeout exceeded rendering page", "error": 504, "type": "GlobalTimeoutError"}
虽然我尝试添加
splash.resource\u timeout
请求:设置\u timeout
splash\u URL=http://localhost:8050?timeout=1800.0“
,没有任何更改


谢谢您的帮助。

我使用
scrapy splash
软件包,在
args
参数中设置
splash请求的超时时间,如下所示:

yield scrapy_splash.SplashRequest(
    url, self.parse, endpoint='execute',
    args={'lua_source': script, 'timeout': 3600})

它适合我。

我从这个设置中得到了错误400。我不知道为什么这不能真正解释为什么它会超时。将超时设置为3600只是隐藏错误。。。如果执行需要3600秒,则仍然会出现严重错误。啊,如果我在运行Splash服务器时设置的超时超过了设置的最大超时,则会出现错误400。默认最大超时为90