Skip to main content

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

Project description

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

项目概述

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

接口说明

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 广告变现收入,单位为
mount_income Integer 挂载变现收入,单位为
sph_nickname String 视频号昵称。

注意:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python_sph-1.0.3-cp311-cp311-win_amd64.whl (199.0 kB view details)

Uploaded CPython 3.11Windows x86-64

python_sph-1.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

File details

Details for the file python_sph-1.0.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: python_sph-1.0.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 199.0 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for python_sph-1.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5059bf1520f3672f921562d4e5ec3930c0be0642ae0de198f722aea88e9bb53b
MD5 7367a5eab8ce31801c407872d37308b4
BLAKE2b-256 e3c36fab4c165cf8b3afe99de895c5da40d691ae041746b7ddb20d681fb61b64

See more details on using hashes here.

File details

Details for the file python_sph-1.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for python_sph-1.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e4f44451d93398d656363b0852450ba13f294ca52954e6a3e501aed41a64de81
MD5 80d58f9987656e48cddfd50a60163c10
BLAKE2b-256 62aee9622246560fe23ca26affe9495b6663f9d462fee661ea96e7498e1093da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page