我需要运行在飞溅这个简单的Lua脚本: script = """
function main(splash)
local url = splash.args.url
assert(splash:go(url))
assert(splash:wait(1))
-- go back 1 month in time and wait a lit
我正在使用scrapy-splash从Javascript驱动的IFRAMEd HTML页面中提取信息。有时,由于某些浏览器条件,我的splash Javascript函数失败,并返回错误消息,如{"error": "NotSupportedError: DOM Exception 9"})。 在我的项目管道我为了删除这些项目,以保持我的结果干净: class NewspaperLayoutPip