美文网首页
scrapy调试技巧

scrapy调试技巧

作者: 千喜Ya | 来源:发表于2019-08-10 17:24 被阅读0次

1.scrapy shell

在pycharm的terminal输入scrapy shell 网址

就可以获取response对象,可以获取网址HTML文本

也可以通过response.xpath检测过滤后的内容

输入quit()可退出调试

2.Test RESTful Web Service

3.Debug

打断点咯

相关文章

网友评论

      本文标题:scrapy调试技巧

      本文链接:https://www.haomeiwen.com/subject/svgrjctx.html