有什么方法可以response.body
从 scrapy 中的 Request 函数中获取?
我有这个:
request = Request("http://www.example.com", callback = self.mytest)
def mytest(self, response)
return response.body
Run Code Online (Sandbox Code Playgroud)
现在我想输入response.body
一个Python变量,我怎样才能得到它?
我想要类似的东西
myresponse = Request("http://www.example.com").get('response')