V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
okface
V2EX  ›  问与答

scrapy 扫描目录下所有 py 文件并坚持错误

  •  
  •   okface · Oct 15, 2019 · 842 views
    This topic created in 2400 days ago, the information mentioned may be changed or developed.
    我想在之前创建的项目目录下建立一个新的爬虫脚本,
    scrapy genspider xxxx,
    报错了,
    由于同目录下存在的其他 py 脚本可能存在执行错误。
    如何避免 scrapy 这种扫描全目录下其他 py 文件有错就不执行新命令的情况?
    1 replies    2019-10-15 10:57:21 +08:00
    ClericPy
        1
    ClericPy  
       Oct 15, 2019   ❤️ 1
    1. 改其源码
    2. 遵其规定
    3. 读其文档
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4920 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 09:53 · PVG 17:53 · LAX 02:53 · JFK 05:53
    ♥ Do have faith in what you're doing.