yxzblue
0.01D
V2EX  ›  PHP

php 怎么模拟登陆 v2ex?

  •  
  •   yxzblue · Oct 7, 2014 · 5054 views
    This topic created in 4281 days ago, the information mentioned may be changed or developed.
    网上查了资料,没登成功。有经验的人能否分享一下代码?
    P.S.我是想做一个自动签到
    14 replies    2014-12-01 20:30:12 +08:00
    wanwangkangluo1
        1
    wanwangkangluo1  
       Oct 7, 2014
    selenium
    kevinroot
        2
    kevinroot  
       Oct 7, 2014 via iPhone
    给你个python的,php你试试应该思路一样
    https://github.com/adin283/smartCheckin/blob/master/V2EX.py
    whywhywhy
        4
    whywhywhy  
       Oct 7, 2014
    php用snoopy模拟这样的操作比较方便。
    yxzblue
        5
    yxzblue  
    OP
       Oct 7, 2014
    @whywhywhy 我还以为snoopy只是用来采集的。下次去看看~
    heganj
        6
    heganj  
       Oct 7, 2014 via Android
    可能可以试试 nightmarejs http://www.nightmarejs.org
    zts1993
        7
    zts1993  
       Oct 7, 2014 via Android
    用的curl?
    kevinroot
        8
    kevinroot  
       Oct 7, 2014 via iPhone
    @yxzblue 这个python小脚本在我服务器上跑着可以自动签到
    yxzblue
        9
    yxzblue  
    OP
       Oct 7, 2014
    @zts1993 嗯,用的这篇文章的代码http://top5.iteye.com/blog/1982719
    binux
        10
    binux  
       Oct 7, 2014
    https://qiandao.today/ 可以服务器托管,也可以下载模板本地执行
    kisshere
        11
    kisshere  
       Oct 7, 2014
    @heganj 我发现凡是无界面浏览器都是跟鬼有关的,phantomjs zombiejs casperjs nightmarejs
    knightlhs
        12
    knightlhs  
       Oct 8, 2014
    我分享一个我在用的 https://github.com/HaishengLiang/v2ex
    希望不会被封杀 O(∩_∩)O~
    yxzblue
        14
    yxzblue  
    OP
       Dec 1, 2014
    knightlhs 兄台分享的可以用。结貼...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2905 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 02:31 · PVG 10:31 · LAX 19:31 · JFK 22:31
    ♥ Do have faith in what you're doing.