推荐学习书目
› 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
cyneuzk
V2EX  ›  Python

请教个爬虫的问题

  •  
  •   cyneuzk · Jul 9, 2016 · 3369 views
    This topic created in 3731 days ago, the information mentioned may be changed or developed.
    urllib2 调用 urlopen 方法已经返回 200ok ,但是调用 read()方法的时候一直卡死,是什么情况
    wireshark 抓包已经看到有响应报文了
    3 replies  •  2016-07-09 23:29:12 +08:00
    raycool
        1
    raycool  
       Jul 9, 2016
    用 requests 试试
    R4rvZ6agNVWr56V0
        2
    R4rvZ6agNVWr56V0  
       Jul 9, 2016
    read 时没做输出吧?
    R4rvZ6agNVWr56V0
        3
    R4rvZ6agNVWr56V0  
       Jul 9, 2016
    如果没做标准输出、文件写入,那 strace 看下系统调用,卡哪了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2766 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:42 · PVG 21:42 · LAX 06:42 · JFK 09:42
    ♥ Do have faith in what you're doing.