python-sph 1.0.0__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_sph/common/crypto_helper.cp311-win_amd64.pyd +0 -0
- python_sph/common/json_file_handler.cp311-win_amd64.pyd +0 -0
- python_sph/common/spider_driver.cp311-win_amd64.pyd +0 -0
- python_sph/common/task_factory.cp311-win_amd64.pyd +0 -0
- python_sph/sdk/sph_dis.cp311-win_amd64.pyd +0 -0
- python_sph/sdk/sph_driver.cp311-win_amd64.pyd +0 -0
- python_sph/sdk/sph_exc.cp311-win_amd64.pyd +0 -0
- python_sph-1.0.0.dist-info/METADATA +88 -0
- python_sph-1.0.0.dist-info/RECORD +20 -0
- python_sph-1.0.0.dist-info/WHEEL +5 -0
- python_sph-1.0.0.dist-info/top_level.txt +3 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-sph
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: 微信视频号剧集数据收入获取项目
|
|
5
|
+
Author: Cruter
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: pillow~=12.1.1
|
|
11
|
+
Requires-Dist: qrcode~=8.2
|
|
12
|
+
Requires-Dist: cryptography~=46.0.5
|
|
13
|
+
Requires-Dist: curl-cffi~=0.14.0
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: classifier
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: requires-dist
|
|
19
|
+
Dynamic: requires-python
|
|
20
|
+
Dynamic: summary
|
|
21
|
+
|
|
22
|
+
# 微信视频号剧集数据收入获取项目
|
|
23
|
+
|
|
24
|
+
## 项目概述
|
|
25
|
+
本项目提供接口,用于自动化获取指定微信视频号的剧集相关收益与播放数据。
|
|
26
|
+
|
|
27
|
+
## 接口说明
|
|
28
|
+
|
|
29
|
+
### 1. 获取登录二维码
|
|
30
|
+
此接口用于获取微信扫码登录所需的二维码图片(Base64格式)。
|
|
31
|
+
|
|
32
|
+
**接口调用**
|
|
33
|
+
```python
|
|
34
|
+
from python_sph.sdk.sph_driver import SphDriver
|
|
35
|
+
|
|
36
|
+
base64 = SphDriver.get_login_qrcode_base64()
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**返回参数**
|
|
40
|
+
|
|
41
|
+
| 字段名 | 类型 | 说明 |
|
|
42
|
+
| :--- | :--- | :--- |
|
|
43
|
+
| `code` | Integer | 状态码。`0`表示成功,非`0`表示错误。 |
|
|
44
|
+
| `data` | String | Base64格式的二维码图片数据,可直接用于前端渲染。格式为:`data:image/png;base64,......` |
|
|
45
|
+
|
|
46
|
+
**注意**: 生成的二维码有效期为 **5分钟**,过期后需重新获取。
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### 2. 获取剧目单日统计收益数据
|
|
51
|
+
此接口用于获取视频号在指定日期的详细剧集数据概览,数据来源对应后台的“下载数据”功能。
|
|
52
|
+
|
|
53
|
+
**接口调用**
|
|
54
|
+
```python
|
|
55
|
+
from python_sph.sdk.sph_driver import SphDriver
|
|
56
|
+
|
|
57
|
+
data = SphDriver.get_detailed_data_statistic(sph_id, date_time)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**请求参数**
|
|
61
|
+
|
|
62
|
+
| 参数名 | 类型 | 是否必填 | 说明 |
|
|
63
|
+
| :--- | :--- | :--- | :--- |
|
|
64
|
+
| `sph_id` | String | 是 | 视频号ID,格式为 `"sph...."`。 |
|
|
65
|
+
| `date_time` | Integer | 是 | 需要获取数据的日期时间戳(单位:秒)。 |
|
|
66
|
+
|
|
67
|
+
**返回参数**
|
|
68
|
+
|
|
69
|
+
| 字段名 | 类型 | 说明 |
|
|
70
|
+
| :--- | :--- | :--- |
|
|
71
|
+
| `code` | Integer | 状态码。`0`表示成功,非`0`表示错误。 |
|
|
72
|
+
| `data` | List\<Object\> | 数据列表,每个对象包含单日统计数据。 |
|
|
73
|
+
|
|
74
|
+
**`data` 列表中对象的字段说明**
|
|
75
|
+
|
|
76
|
+
| 字段名 | 类型 | 说明 |
|
|
77
|
+
| :--- | :--- | :--- |
|
|
78
|
+
| `date` | String | 数据对应的日期。 |
|
|
79
|
+
| `sph_id` | String | 视频号ID。 |
|
|
80
|
+
| `is_mount` | Boolean | 剧集是否挂载。`True`为是,`False`为否。 |
|
|
81
|
+
| `feed_read_count` | Integer | 视频素材播放量。 |
|
|
82
|
+
| `drama_read_count` | Integer | 剧集播放量。 |
|
|
83
|
+
| `iaa_income` | Integer | 广告变现收入,单位为**分**。 |
|
|
84
|
+
| `sph_nickname` | String | 视频号昵称。 |
|
|
85
|
+
|
|
86
|
+
**注意**:
|
|
87
|
+
1. 接口的响应时间与数据量正相关,数据量越小则响应越快。
|
|
88
|
+
2. 关于日期参数 `date_time` 的可用范围,请以当前数据库的实际查询能力为准。
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
common/crypto_helper.py,sha256=2fcZDzBCS6WB1nvUVFTT4ZYIK4-Qacf_ICwb-IM5qxo,3793
|
|
3
|
+
common/json_file_handler.py,sha256=0E37xThAtSDpZCWITW3l34jvUeI7HvlAg63g4uxjfbA,4515
|
|
4
|
+
common/spider_driver.py,sha256=8Hw4bySHp-57yc8FiBxoIhFrn049696j-iQPPtvXH7U,6337
|
|
5
|
+
common/task_factory.py,sha256=cJqbW4tRNf6m_Y-cLJo8dfzxChtxFNJ51oyvT6n_d7A,2617
|
|
6
|
+
python_sph/common/crypto_helper.cp311-win_amd64.pyd,sha256=XLQHPqGHysk-_Sx6C5s9IYkFWCnGIGgB_9TtZBwy-v0,55296
|
|
7
|
+
python_sph/common/json_file_handler.cp311-win_amd64.pyd,sha256=WX1djXhVu_lxlHDDT711RIOknHNCniGXQyk3cPROj3Y,62464
|
|
8
|
+
python_sph/common/spider_driver.cp311-win_amd64.pyd,sha256=uVi883DdBW5foZp2bONloGyU3yL6N8gy7w14olUq03w,67072
|
|
9
|
+
python_sph/common/task_factory.cp311-win_amd64.pyd,sha256=qqsQiPuC0ldX6-Kb6tVubePxyu7nmeqjwvMKaSuMvJU,41984
|
|
10
|
+
python_sph/sdk/sph_dis.cp311-win_amd64.pyd,sha256=ZyMGiVUGDXsiL1I37201e7ZY84qPEB5ISInkraEJkb8,43008
|
|
11
|
+
python_sph/sdk/sph_driver.cp311-win_amd64.pyd,sha256=cLausP-m88Q3hEiAHNQ8suAqHC4JgV8Gm9OqwD-TJOI,61952
|
|
12
|
+
python_sph/sdk/sph_exc.cp311-win_amd64.pyd,sha256=asnvhuEBq376VVeA5p84Xs3ZjPs4cFNqdJjX3mSNysM,67072
|
|
13
|
+
sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
sdk/sph_dis.py,sha256=bBkS2idXUBQ5w88srU0PngPtcpMzzWIry340yai4Tds,1723
|
|
15
|
+
sdk/sph_driver.py,sha256=ABI1YLOCLdLYvWdzznchJ6dKezbbr-tLgvmSzYtm5vw,5615
|
|
16
|
+
sdk/sph_exc.py,sha256=CvOU_MnLWwIDfOp4W8MkJ6dUFoUPHqLiJhQ2XMRPm7I,5171
|
|
17
|
+
python_sph-1.0.0.dist-info/METADATA,sha256=Da-st4dJYYWxjiPj1mrfDgIEpyG1S4qihLv3Rq6qR9A,2966
|
|
18
|
+
python_sph-1.0.0.dist-info/WHEEL,sha256=XHXMKJU3yoVh1ZanBXTJ5bDGb67oEYtF1S6bd8a4izI,101
|
|
19
|
+
python_sph-1.0.0.dist-info/top_level.txt,sha256=DXrTGrLWXW3S534eX6eIATIeEk2pryDpTH9oYCrHjJI,22
|
|
20
|
+
python_sph-1.0.0.dist-info/RECORD,,
|