search

Home  >  Q&A  >  body text

python - scrapy cannot crawl data and cannot create txt files





曾经蜡笔没有小新曾经蜡笔没有小新2732 days ago903

reply all(4)I'll reply

  • phpcn_u1582

    phpcn_u15822017-06-12 09:23:48

    It’s a problem with xpath parsing path, thank you everyone

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-12 09:23:48

    There should be a problem with the writing mode, try ab.

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-12 09:23:48

    Is it running on Linux? Is there any permission issue?

    reply
    0
  • 代言

    代言2017-06-12 09:23:48

    Looking at the log output, it seems that scrapy exited early when it encountered robot.txt. Try changing ROBOTSTXT_OBEY to ROBOTSTXT_OBEY = False in settings. If it still doesn’t work, stop and debug it

    reply
    0
  • Cancelreply