yxzblue
0.01D
V2EX  ›  PHP

php 怎么模拟登陆 v2ex?

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