V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 3053 views
    This topic created in 3590 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   ·   Solana   ·   1168 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 23:21 · PVG 07:21 · LAX 16:21 · JFK 19:21
    ♥ Do have faith in what you're doing.