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

来问个初级问题, 对于批量网页抓取,怎么实现好点儿

  •  
  •   SuperFlanker · May 18, 2015 · 3006 views
    This topic created in 4150 days ago, the information mentioned may be changed or developed.
    ShowDetail.aspx?querywrid=xxxx 这种格式

    批量抓取

    另外登陆该怎么解决哦?
    imlinhanchao
        1
    imlinhanchao  
       May 18, 2015
    1. id連續就從1開始知道抓到錯誤頁。
    2. 登錄就模擬登錄請求保存cookies就好了。
    Flyshit
        2
    Flyshit  
       May 18, 2015 via Android
    循环get/post就可以了嘛。需要登陆的话就post登陆后记录cookies,设置cookies然后get/post嘛
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   780 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.