The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
tmac33

Discuz 自动顶贴

  •  
  •   tmac33 · Apr 4, 2019 · 2804 views
    This topic created in 2597 days ago, the information mentioned may be changed or developed.

    如何用 go 实现一个定时顶贴的工具,论讨长这样( http://bbs.skykiwi.com/forum.php?mod=viewthread&tid=3750237&extra=page%3D1 ) 各位大神,求一个思路即可

    伪代码实现更佳

    2 replies    2019-04-13 18:20:40 +08:00
    keepeye
        1
    keepeye  
       Apr 13, 2019
    登录把 cookie 拷贝出来,用 http client 配置 transport 的 cookie.jar 用于发送请求。

    首先,你需要抓包,知道怎么提交一条回复,dz 好多年没玩了,但我记得要发表评论的表单中好像有一个隐藏的 token,你需要先爬出来,然后再构造 post 请求。

    如果有图片验证码的话就需要借助验证码识别工具或 api
    keepeye
        2
    keepeye  
       Apr 13, 2019
    @keepeye 更正:是 http.Client 的 Jar 参数
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1555 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:45 · PVG 00:45 · LAX 09:45 · JFK 12:45
    ♥ Do have faith in what you're doing.