How to set splash timeout in scrapy-splash?

https://stackoverflow.com/questions/44627694/how-to-set-splash-timeout-in-scrapy-splash

I use scrapy-splash package and set the timeout in args parameter of SplashRequest like this:

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

It works for me.

你可能感兴趣的:(爬虫)