Skip to content

Commit

Permalink
Merge pull request #62 from Starry-OvO/develop
Browse files Browse the repository at this point in the history
Update 2.9.7
  • Loading branch information
lumina37 authored Dec 19, 2022
2 parents 7dbbc4a + 9e8a2c9 commit bce0d8d
Show file tree
Hide file tree
Showing 11 changed files with 126 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- name: Checkout
Expand Down
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div align="center">
<p>
<a href="https://github.com/Starry-OvO/aiotieba/actions">
<img src="https://img.shields.io/github/workflow/status/Starry-OvO/aiotieba/CI?label=CI&logo=github" alt="GitHub Workflow Status">
<img src="https://img.shields.io/github/actions/workflow/status/Starry-OvO/aiotieba/CI.yml?branch=develop&label=CI&logo=github" alt="GitHub Workflow Status">
</a>
<a href="https://pypi.org/project/aiotieba">
<img src="https://img.shields.io/pypi/v/aiotieba?color=g" alt="PyPI - Version">
Expand Down Expand Up @@ -87,23 +87,22 @@ asyncio.run(main())

## 客户名单

<details><summary>2022.11.20更新</summary>
<details><summary>2022.12.19更新</summary>

| 吧名 | 关注用户数 | 最近29天日均访问量 | 日均主题帖数 | 日均回复数 |
| :------------: | :--------: | :----------------: | :----------: | :--------: |
| 抗压背锅 | 4,297,600 | 1,346,462 | 3,602 | 87,919 |
| 孙笑川 | 2,867,558 | 571,445 | 5,317 | 151,279 |
| lol半价 | 1,976,938 | 102,687 | 342 | 5,162 |
| 宫漫 | 1,385,076 | 33,628 | 159 | 1,768 |
| 逆水寒ol | 719,939 | 27,041 | 103 | 1,915 |
| 新孙笑川 | 470,700 | 53,570 | 650 | 15,080 |
| vtuber | 218,818 | 10,819 | 57 | 686 |
| asoul | 156,629 | 11,946 | 102 | 506 |
| 嘉然 | 58,623 | 14,485 | 125 | 1,561 |
| 向晚 | 30,468 | 11,727 | 98 | 1,235 |
| 贝拉 | 21,735 | 8,458 | 38 | 565 |
| 乃琳 | 17,262 | 6,120 | 36 | 546 |
| vtuber自由讨论 | 17,023 | 4,058 | 2 | 50 |
| asoul一个魂儿 | 14,281 | 878 | 4 | 15 |
| 抗压背锅 | 4,384,814 | 1,078,903 | 1,695 | 70,473 |
| 孙笑川 | 3,027,960 | 710,954 | 6,395 | 203,962 |
| lol半价 | 1,989,272 | 89,995 | 295 | 4,258 |
| 宫漫 | 1,429,875 | 41,061 | 164 | 2,320 |
| 逆水寒ol | 730,945 | 26,510 | 112 | 1,753 |
| 新孙笑川 | 496,177 | 38,547 | 323 | 13,033 |
| vtuber | 219,792 | 9,916 | 59 | 682 |
| asoul | 156,286 | 11,013 | 89 | 518 |
| 嘉然 | 59,061 | 12,000 | 95 | 1,231 |
| 向晚 | 30,725 | 9,238 | 71 | 888 |
| 贝拉 | 21,747 | 7,653 | 34 | 545 |
| 乃琳 | 17,323 | 4,782 | 28 | 420 |
| vtuber自由讨论 | 17,083 | 3,948 | 2 | 45 |

</details>
2 changes: 1 addition & 1 deletion aiotieba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
VoteInfo,
)

__version__ = "2.9.6"
__version__ = "2.9.7"

if os.name == 'posix':
import signal
Expand Down
4 changes: 2 additions & 2 deletions aiotieba/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class Client(object):

_use_env_proxy = False

latest_version: ClassVar[str] = "12.32.3.0" # 这是目前的最新版本
latest_version: ClassVar[str] = "12.34.1.0" # 这是目前的最新版本
# no_fold_version: ClassVar[str] = "12.12.1.0" # 这是最后一个回复列表不发生折叠的版本
post_version: ClassVar[str] = "9.1.0.0" # 发帖使用极速版

Expand Down Expand Up @@ -1737,9 +1737,9 @@ async def get_homepage(

req_proto = ProfileReqIdl_pb2.ProfileReqIdl()
req_proto.data.common._client_version = self.latest_version
req_proto.data.need_post_count = 1
req_proto.data.friend_uid_portrait = user.portrait
if with_threads:
req_proto.data.need_post_count = 1
req_proto.data.common._client_type = 2
req_proto.data.pn = 1
req_proto.data.rn = 20
Expand Down
1 change: 1 addition & 0 deletions aiotieba/protobuf/ThreadInfo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ message ThreadInfo {
int32 is_good = 10;
int32 is_voice_thread = 15;
User author = 18;
int32 thread_type = 26;
int64 fid = 27;
string fname = 28;
int32 is_livepost = 30;
Expand Down
24 changes: 12 additions & 12 deletions aiotieba/protobuf/ThreadInfo_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions aiotieba/protobuf/User.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ message User {
StateInfo personal_state = 9;
}
VirtualImageInfo virtual_image_info = 136;
message UserGrowth {
uint32 level_id = 1;
}
UserGrowth user_growth = 137;
}
34 changes: 18 additions & 16 deletions aiotieba/protobuf/User_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bce0d8d

Please sign in to comment.