Skip to main content

微信视频号剧集数据收入获取项目

v1.0.9 修复已知bug

v1.0.8 修复已知bug

v1.0.7 修复已知bug

v1.0.6 修复已知bug

v1.0.5 修复获取数据不全的问题

v1.0.4 修复获取登录错误

项目概述

本项目提供接口,用于自动化获取指定微信视频号的剧集相关收益与播放数据。

接口说明

1. 获取登录二维码

此接口用于获取微信扫码登录所需的二维码图片(Base64格式)。

接口调用

from python_sph.sdk.sph_driver import SphDriver

base64 = SphDriver.get_login_qrcode_base64()

返回参数

字段名 类型 说明
code Integer 状态码。0表示成功,非0表示错误。
data String Base64格式的二维码图片数据,可直接用于前端渲染。格式为:data:image/png;base64,......

注意: 生成的二维码有效期为 5分钟,过期后需重新获取。


2. 获取剧目单日统计收益数据

此接口用于获取视频号在指定日期的详细剧集数据概览,数据来源对应后台的“下载数据”功能。

接口调用

from python_sph.sdk.sph_driver import SphDriver

data = SphDriver.get_detailed_data_statistic(sph_id, date_time)

请求参数

参数名 类型 是否必填 说明
sph_id String 是 视频号ID,格式为 "sph...."。
date_time Integer 是 需要获取数据的日期时间戳(单位:秒)。

返回参数

字段名 类型 说明
code Integer 状态码。0表示成功,非0表示错误。
data List<Object> 数据列表,每个对象包含单日统计数据。

data 列表中对象的字段说明

字段名 类型 说明
date String 数据对应的日期。
sph_id String 视频号ID。
drama_name String 剧集名称。
is_mount Boolean 剧集是否挂载。True为是,False为否。
feed_read_count Integer 视频素材播放量。
drama_read_count Integer 剧集播放量。
iaa_income Integer 广告变现收入,单位为分。
sph_nickname String 视频号昵称。

注意:

  1. 接口的响应时间与数据量正相关,数据量越小则响应越快。
  2. 关于日期参数 date_time 的可用范围,请以当前数据库的实际查询能力为准。

Metadata

Release files for python-sph 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for python-sph 1.0.9
File Interpreter ABI Platform Actions
python_sph-1.0.9-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for python_sph-1.0.9-cp311-cp311-win_amd64.whl
python_sph-1.0.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for python_sph-1.0.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Total release size: 1.5 MB

Release files / python_sph-1.0.9-cp311-cp311-win_amd64.whl

Download URL python_sph-1.0.9-cp311-cp311-win_amd64.whl
Size 205.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5a208e5825f7b76ce716ac44218b1be786097c0b757c02b4af9613f85a71a1ef
BLAKE2b-256 checksum
How to use checksums
a430596dbcf0a0e4577f0136c3e3876720a420edd195f02424b9de1c30556f6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Release files / python_sph-1.0.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL python_sph-1.0.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
86928b2a005c5b52ec1deec02e3576d168850f60e71cc13f9542dc49edaed4b1
BLAKE2b-256 checksum
How to use checksums
0c82fdfc58812bab1bd73ab32f1139fdf0f62a40437db71a9b66d814a735e224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Security for python-sph 1.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page