安装IPython

pip install IPython==2.4.1

使用方法:

scrapy shell http://www.itcast.cn/channel/teacher.shtml

response.url:当前响应的url地址
response.request.url:当前响应对应的请求的url地址
response.headers:响应头
response.body:响应体,也就是html代码,默认是byte类型
response.requests.headers:当前响应的请求头

相关文章:

  • 2021-06-09
  • 2021-07-01
  • 2021-11-28
  • 2021-06-08
  • 2021-11-23
  • 2021-07-24
猜你喜欢
  • 2021-06-21
  • 2022-03-10
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案