V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
luzhizheng
V2EX  ›  Python

兄弟们,现在遇到一个问题,去哪儿机票中的请求头 pre 参数怎么破解出来的

  •  
  •   luzhizheng · 2019-07-09 15:00:50 +08:00 · 1434 次点击
    这是一个创建于 1745 天前的主题,其中的信息可能已经有所发展或是发生改变。
    去哪儿国际机票搜索出来以后,看其中传输的 api,json 文件,请求的时候会带上 pre 参数,是页面 js 加载出来的,有谁知道怎么破解吗
    2 条回复    2019-07-25 17:01:11 +08:00
    txy3000
        1
    txy3000  
       2019-07-11 14:05:18 +08:00 via Android
    浏览器 调试单步分析 js 咯 还能怎么办 要不你用 senlenium 模拟浏览器行为
    luzhizheng
        2
    luzhizheng  
    OP
       2019-07-25 17:01:11 +08:00
    @txy3000 太慢了啊,调用浏览器是下下策,现在有新问题,请求机票详情页,获取价格的时候,有一个 bp 参数,不知道怎么生成的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1148 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:08 · PVG 07:08 · LAX 16:08 · JFK 19:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.