【发布时间】:2017-07-03 14:34:58
【问题描述】:
我正在尝试学习scrapy,并且在学习教程的同时,我正在尝试进行细微的调整。
我只想从请求中获取响应内容。然后我会将响应传递到教程代码中,但我无法发出请求并获取响应的内容。建议会很好
from scrapy.http import Response
url = "https://www.myUrl.com"
response = Response(url=url)
print response # <200 myurl.com>
# but i want the content! and I cant find the method
【问题讨论】:
-
你可能想得到 response.body doc.scrapy.org/en/latest/topics/…
标签: python python-2.7 scrapy