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

如何用 python 抓取京东不同地区是否有货

  •  
  •   wangfeng3769 · Mar 20, 2014 · 4937 views
    This topic created in 4444 days ago, the information mentioned may be changed or developed.
    想用python抓取京东的刮胡刀不同地区的情况,比如怎么抓山东、北京、河北的数据。望指点。
    6 replies    1970-01-01 08:00:00 +08:00
    binux
        1
    binux  
       Mar 20, 2014
    我猜是cookie区分的
    wangfeng3769
        2
    wangfeng3769  
    OP
       Mar 20, 2014
    @binux 有思路吗说一下吧。
    binux
        3
    binux  
       Mar 20, 2014
    @wangfeng3769 带cookie抓啊
    muyi
        4
    muyi  
       Mar 20, 2014
    切换地区时,抓包分析下就知道了

    URL里的参数除了地区id,其它在网页源码中都可找到,返回的是json数据

    地区id也能抓包获取
    sdu20112013
        5
    sdu20112013  
       Mar 23, 2014
    关注一下。lz知道怎么搞了不
    wangfeng3769
        6
    wangfeng3769  
    OP
       Mar 27, 2014
    @sdu20112013 User-agent 把 cookie 传过去。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 20:10 · PVG 04:10 · LAX 13:10 · JFK 16:10
    ♥ Do have faith in what you're doing.