V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Jessss
V2EX  ›  程序员

美团外卖商家链接是怎样做到经常变动的,如 http://waimai.meituan.com/restaurant/144831100206798332,最后的参数( 144831100206798332)一直在变化,这是什么原理?

  •  1
     
  •   Jessss · 2017-05-25 20:09:01 +08:00 · 4578 次点击
    这是一个创建于 2527 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2017-05-26 10:22:46 +08:00
    bazingaterry
        1
    bazingaterry  
       2017-05-25 20:58:10 +08:00 via iPhone
    反爬虫呗,另外美团外卖有一个固定的 ID,叫 poi id 还是啥来着。
    Morriaty
        2
    Morriaty  
       2017-05-26 10:22:46 +08:00
    假设一个最简单的

    ```
    fake_id = id + currentTime()
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5389 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:10 · PVG 15:10 · LAX 00:10 · JFK 03:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.