推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
ChenJinluo
V2EX  ›  Python

Scrapy 爬虫莫名奇妙暂停了?

  •  
  •   ChenJinluo · Jan 23, 2018 · 4337 views
    This topic created in 3184 days ago, the information mentioned may be changed or developed.
    一个很简单的爬虫,就是一直监控某个页面,xpath 解析。通常情况下是正常运行的,但是有时候爬虫停止运行,更神奇的是按下 ctrl+c(windows7)居然又继续运行了。请问有人遇到过类似的情况吗?
    7 replies  •  2018-01-25 23:39:06 +08:00
    vuefu
        1
    vuefu  
       Jan 23, 2018
    内部有加其他解析方式不( requests ?),或者加一个 timeout。
    gouchaoer
        2
    gouchaoer  
       Jan 24, 2018
    powershell 或者 cmd 中关闭快速编辑模式
    gouchaoer
        3
    gouchaoer  
       Jan 24, 2018
    垃圾微软
    beforeuwait
        4
    beforeuwait  
       Jan 25, 2018
    刚接触爬虫的时候遇到过,当时也觉得有意思。
    不过脚本是自己写的哈。
    ChenJinluo
        5
    ChenJinluo  
    OP
       Jan 25, 2018
    @gouchaoer 我确实看了快速编辑模式。难道问题就出在这里吗, 你也遇到过吗? 我现在正在重现这个问题,不断尝试中,毕竟出现这个问题的概率有点小-。-
    ChenJinluo
        6
    ChenJinluo  
    OP
       Jan 25, 2018
    @gouchaoer 开了快速编辑模式。打错。
    ChenJinluo
        7
    ChenJinluo  
    OP
       Jan 25, 2018
    @beforeuwait 是用的 Scrapy 吗?你有解决吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3170 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:16 · PVG 22:16 · LAX 07:16 · JFK 10:16
    ♥ Do have faith in what you're doing.