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
SuperFlanker
V2EX  ›  Python

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

  •  
  •   SuperFlanker · May 18, 2015 · 2756 views
    This topic created in 4000 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   ·   Solana   ·   956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 18:51 · PVG 02:51 · LAX 11:51 · JFK 14:51
    ♥ Do have faith in what you're doing.