Code Monkey home page Code Monkey logo

Comments (14)

n0099 avatar n0099 commented on August 16, 2024 2

我顺着昨天出现的某贴吧相关repostar狂魔 @sansiny https://web.archive.org/web/20240328160640/https://github.com/sansiny?tab=stars https://z.n0099.net/#narrow/near/103195 找到了个 https://github.com/Dilettante258/tieba-tools/blob/0e66159533518c624f4262b8ea3da329bb6e55b9/src/api/post.ts#L20 https://tb.wang1m.cc/userpost/n0099/1 但其api后端不开源看起来是直接反代protobuf接口

from aiotieba.

Starry-OvO avatar Starry-OvO commented on August 16, 2024 1

当然只能抓自己的。我也没搞懂那些工具箱是怎么查发言的,貌似高级搜索的接口已经被ban了

from aiotieba.

Starry-OvO avatar Starry-OvO commented on August 16, 2024 1

下午受大佬点拨把这个接口的调用方法找出来了,其实就是改个版本号的事情c6d3707

from aiotieba.

Dilettante258 avatar Dilettante258 commented on August 16, 2024 1

我顺着昨天出现的某贴吧相关repostar狂魔 @sansiny https://web.archive.org/web/20240328160640/https://github.com/sansiny?tab=stars https://z.n0099.net/#narrow/near/103195 找到了个 https://github.com/Dilettante258/tieba-tools/blob/0e66159533518c624f4262b8ea3da329bb6e55b9/src/api/post.ts#L20 https://tb.wang1m.cc/userpost/n0099/1 但其api后端不开源看起来是直接反代protobuf接口

这个就是我参考着叶灵大佬的aiotieba的接口写的。这个没有后端,protobuf序列化和反序列化都是通过js在前端完成的。api接口之所以需要反代是因为cors问题

from aiotieba.

Dilettante258 avatar Dilettante258 commented on August 16, 2024 1

12.57.0.1也能看到?

不好意思,大早上还没醒,我复制错了。😹 已更改。

from aiotieba.

Dilettante258 avatar Dilettante258 commented on August 16, 2024

好的,谢谢👌🙂

from aiotieba.

Dilettante258 avatar Dilettante258 commented on August 16, 2024

麻烦啦。谢谢!🤩🤩🤩

from aiotieba.

n0099 avatar n0099 commented on August 16, 2024

我也没搞懂那些工具箱是怎么查发言的

https://www.82cat.com/tieba/reply/n0099/1

下午受大佬点拨把这个接口的调用方法找出来了

不二告诉您的?

from aiotieba.

Starry-OvO avatar Starry-OvO commented on August 16, 2024

我也没搞懂那些工具箱是怎么查发言的

https://www.82cat.com/tieba/reply/n0099/1

下午受大佬点拨把这个接口的调用方法找出来了

不二告诉您的?

一个水友,反正不是站长

from aiotieba.

n0099 avatar n0099 commented on August 16, 2024

bug吧壬?小心明天接口就失效

from aiotieba.

n0099 avatar n0099 commented on August 16, 2024

貌似高级搜索的接口已经被ban了

在曾于18年7月主持血小板吧事件的某esu狗妖照 实名/张钦瑞于19年3月幕后主导的b吧事件 https://n0099.net/tbm/bilibiliVote https://moegirl.uk/User:A635683851/Bilibili吧吧务被警告及下台事件 https://web.archive.org/web/20220205061240/https://zh.moegirl.org.cn/User:A635683851/Bilibili吧吧务被警告及下台事件 有请时任esu调查员 @creeper9
及此后19年4月esuwiki出道刘慈欣
https://html-preview.github.io/?url=https://github.com/ESUAdmin/esu/blob/8f07c4ea48572d29e70949ddb98c905e669351bc/刘慈欣.html
https://github.com/ESUAdmin/esu/blob/8f07c4ea48572d29e70949ddb98c905e669351bc/刘慈欣.html#L383
https://github.com/ESUAdmin/esu/blob/8f07c4ea48572d29e70949ddb98c905e669351bc/刘慈欣.html#L590
时贴吧方面关闭的网页高级搜索 https://tieba.baidu.com/f/search/res?ie=utf-8&qw=n0099 目前削弱的高搜跟上面不二工具盒的相比索引明显滞后很久

其实就是改个版本号的事情 c6d3707


我记得当年就有人在目录吧主群里声称某8.x版本客户端可以像高搜那样查用户全吧回复贴楼中楼,但没说具体版本号多少
这就像吧首页主题帖接口用远古版本6.0.2才能看到unixtimestamp的最后回复时间一样
https://github.com/search?q=repo%3An0099%2Fopen-tbm+6.0.2&type=code

以及主题帖回复贴接口8.8.8.8
https://github.com/n0099/open-tbm/blob/4f0745c64ba0b756e7e2a763b47c6e951c08e767/c%23/crawler/src/Tieba/Crawl/ThreadLateCrawlerAndSaver.cs#L44
看网页端上可见的发帖客户端类型
https://github.com/n0099/open-tbm/blob/4f0745c64ba0b756e7e2a763b47c6e951c08e767/c%23/crawler/src/Tieba/Crawl/ThreadLateCrawlerAndSaver.cs#L91
_client_type
https://github.com/n0099/tbclient.protobuf/blob/e7825f56bf0ce23d528490f8e0a450c8c884929f/proto/CommonReq.proto#L4
https://github.com/TRPGEngine/Server/blob/feb08996077c2473e4a65fc3a4de28ab11544483/services/tieba-helper/index.ts#L66-L69

from aiotieba.

n0099 avatar n0099 commented on August 16, 2024

那么_client_version=8.9.8.5在哪儿?

from aiotieba.

Dilettante258 avatar Dilettante258 commented on August 16, 2024

那么_client_version=8.9.8.5在哪儿?

https://github.com/Dilettante258/tieba-tools/blob/0e66159533518c624f4262b8ea3da329bb6e55b9/src/api/ProtobufParser.ts#L16

export function postReqSerialize(userId:number, pn:number): Promise<Buffer> {
  return new Promise((resolve) => {
    const Proto = root.lookupType("UserPostReqIdl");

    const payload = {
      data: {
        needContent: 1,
        userId: userId,
        pn: pn,
        common: {
          clientversion: "8.9.8.5",
        }
      }
    };

    const message = Proto.create(payload);
    const buffer = Proto.encode(message).finish();

    resolve(Buffer.from(buffer));
  });
}

from aiotieba.

n0099 avatar n0099 commented on August 16, 2024

12.57.0.1也能看到?

from aiotieba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.