V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
squallcx
V2EX  ›  问与答

请问抢登网站时最佳化的方法

  •  
  •   squallcx · Apr 1, 2015 · 2116 views
    This topic created in 4055 days ago, the information mentioned may be changed or developed.

    1.抢登一天只有10个名额,预估有2000-3000人会同时在12点登入,该时网站会变得卡顿,开个页面要30秒-50秒不等,平常只需80ms.
    2.抢登要登入以后,在抢登页面获取按钮资讯(nonce),再送表单出去
    3.网站限制单帐号单IP登入

    我尝试的做法是先获取登入后的cookie,在快到12点时 回圈执行
    [cookie登入页面,侦测按钮出现,取得按钮资讯(nonce),再POST表单出去]
    在单主机上开好几个线程

    但这样做的效果不尽理想,3-4天可能才有一个名额,如果我想让这10个名额都是我的,有什麽样的做法?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   948 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:25 · PVG 05:25 · LAX 14:25 · JFK 17:25
    ♥ Do have faith in what you're doing.