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

100offer 刷票脚本

  •  
  •   vitovan · 2015-09-22 17:03:27 +08:00 · 4752 次点击
    这是一个创建于 3132 天前的主题,其中的信息可能已经有所发展或是发生改变。
    (defun robot-vote(project-id)
      (let* ((cookie-jar (make-instance 'drakma:cookie-jar))
             (proj-res (multiple-value-list
                        (drakma:http-request (concatenate 'string "http://i.100offer.com/projects/" (write-to-string project-id))
                                             :cookie-jar cookie-jar)))
             (html-str (car proj-res))
             (csrf-token
              (car (map 'list
                        #'(lambda (node)
                            (plump:attribute node "content"))
                        (clss:select "meta[name=csrf-token]" (plump:parse html-str)))))
             (vote-result (drakma:http-request "http://i.100offer.com/projects/vote"
                                               :method :post
                                               :parameters `(,(cons "project_id" (write-to-string project-id)))
                                               :additional-headers `(,(cons "X-CSRF-Token"  csrf-token))
                                               :cookie-jar cookie-jar)))
        vote-result))
    

    分分钟一千票啊,这玩意儿算钱啊,最具人气奖直接给我吧哈哈~

    http://i.100offer.com/projects/140

    帮忙 @ 一下 100offer 负责人吧,没找到。

    已邮件至 li*****[email protected]

    发现:
    http://i.100offer.com/projects/
    这个页面的内容不是机器生成,应该是手工整理的。

    第 1 条附言  ·  2015-09-22 17:42:44 +08:00
    截个装逼图:
    26 条回复    2015-09-23 08:48:48 +08:00
    xsjguagua
        1
    xsjguagua  
       2015-09-22 17:12:23 +08:00
    ..5000 到手
    dai269619118
        2
    dai269619118  
       2015-09-22 17:13:17 +08:00   ❤️ 2
    应该拿刷票工具参加 23333
    sneezry
        3
    sneezry  
       2015-09-22 17:20:56 +08:00 via iPhone
    赞楼主的探索精神!
    vitovan
        4
    vitovan  
    OP
       2015-09-22 17:25:11 +08:00
    @sneezry
    @dai269619118
    @xsjguagua
    啊呀! 403 了!
    sneezry
        5
    sneezry  
       2015-09-22 17:27:49 +08:00 via iPhone
    哈哈,洞补上了😄
    vitovan
        6
    vitovan  
    OP
       2015-09-22 17:37:26 +08:00
    @sneezry 没有补,还是那样。
    scarlex
        7
    scarlex  
       2015-09-22 17:37:57 +08:00
    居然是 lisp ?
    ob
        8
    ob  
       2015-09-22 17:40:25 +08:00   ❤️ 3
    感谢楼主为 wikipedia 做出贡献。
    cxl008
        9
    cxl008  
       2015-09-22 17:41:51 +08:00
    服务器没记录 ip ?
    vitovan
        10
    vitovan  
    OP
       2015-09-22 17:43:47 +08:00
    @scarlex 装逼神器!
    frankel
        11
    frankel  
       2015-09-22 17:44:54 +08:00
    首先感谢楼主发现 Bug~~

    我们已经紧急修复了,楼主再看看?
    ibcker
        12
    ibcker  
       2015-09-22 17:45:32 +08:00
    刷票服务出租,有好几台 vps XD
    vitovan
        13
    vitovan  
    OP
       2015-09-22 17:48:29 +08:00
    @frankel 那我还有没有最具人气奖?
    aliuwr
        14
    aliuwr  
       2015-09-22 17:50:35 +08:00
    楼主的浏览器用的什么主体?
    lincanbin
        15
    lincanbin  
       2015-09-22 17:52:41 +08:00
    http://i.100offer.com/projects/297

    这个人 8 star 的项目也有两千多票,刷的?
    MOsky
        16
    MOsky  
       2015-09-22 17:52:55 +08:00
    才发现页面全是宋体。。。。
    enda
        17
    enda  
       2015-09-22 17:56:55 +08:00
    这是啥语言
    vitovan
        18
    vitovan  
    OP
       2015-09-22 17:58:15 +08:00
    @lincanbin 报告警官,这个不是我干的,我只刷了自己的。
    vitovan
        19
    vitovan  
    OP
       2015-09-22 17:59:01 +08:00   ❤️ 1
    @aliuwr 没用主题,好像 Firefox Developer Edition 这个版本就是这么骚。
    vitovan
        20
    vitovan  
    OP
       2015-09-22 18:02:18 +08:00
    @MOsky 我这 V2EX 就很好看,不知道为什么 100offer 成了那样。
    vitovan
        21
    vitovan  
    OP
       2015-09-22 18:02:51 +08:00
    @enda Common Lisp
    aliuwr
        22
    aliuwr  
       2015-09-22 18:06:42 +08:00
    @vitovan 忍受不了你那 title 里矢量和点阵字体在一起的样子。

    BikeMan
        23
    BikeMan  
       2015-09-22 18:07:54 +08:00
    Gentoo 以前是我最爱的 Linux 个人服务器系统, 现在批量管理, 就直接用 Ubuntu 了.
    iamleung
        24
    iamleung  
       2015-09-22 18:22:56 +08:00   ❤️ 1
    awesome 真的是逼格与实用性并存的窗口管理神器
    vitovan
        25
    vitovan  
    OP
       2015-09-22 18:24:38 +08:00
    @aliuwr 我也受不了,可是不知道怎么调整。
    你这一说我要活不成了,摔电脑!!
    vitovan
        26
    vitovan  
    OP
       2015-09-23 08:48:48 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1213 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:01 · PVG 02:01 · LAX 11:01 · JFK 14:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.