0

我想根据通过scrapy登录认证获得的头信息在splash上​​登录。

我对此有两个问题。

问题1。

是否可以直接将scrpay登录得到的header信息传递给splash?

问题2。

使用 splash 识别不需要执行登录身份验证是否有意义?

这是我的基本代码。

import scrapy
from scrapy_splash import SplashRequest

def test(self, response):
  self.logger.info("headers:-------"+ str(response.headers))
return SplashRequest(
       "url",
       self.test2,
       endpoint='execute',
       args={
       'lua_source': """Lua script""",
       'wait': 5,})

感谢您阅读我的问题。

4

0 回答 0