Heim  >  Fragen und Antworten  >  Hauptteil

python - scrapy运行爬虫一打开就关闭了没有爬取到数据是什么原因

爬虫运行遇到如此问题要怎么解决

PHP中文网PHP中文网2741 Tage vor565

Antworte allen(1)Ich werde antworten

  • PHP中文网

    PHP中文网2017-04-18 10:34:17

    很可能是你的爬取规则出错,也就是说你的spider代码里面的xpath(或者其他解析工具)的规则错误。导致没爬取到。你可以把网址print出来,看看是不是[]

    Antwort
    0
  • StornierenAntwort