Giter Club home page Giter Club logo

wxlivespy's Introduction

功能

本工具可以监听微信视频号直播间的弹幕、礼物信息,并转发到指定的http地址。

  • 工具只在Win64系统上发布并测试过。其他系统未测试。
  • 同一个用户在不同的直播场次中,用户ID会变化。(2024-02-02 已更新,使用数据中的decoded_openid,它在同一个主播的不同直播场次中是不变的)
  • 可以获取到用户的点赞行为(长按直播界面的点赞按钮),以及直播间的点赞总数,但是无法获取单个用户精确的点赞次数。

使用方式

gif2sc.gif

  1. 点击“开始监听”按钮。
  2. 浏览器会打开的视频号管理后台,用微信扫码登录。
  3. 本工具上会展示出直播间的状态以及弹幕、礼物信息。
  4. 设置http转发地址,将弹幕、礼物信息转发到指定地址。

开发说明

Install

Clone the repo and install dependencies:

npm install

安装完毕后,在 C:\Users\<username>\.cache\puppeteer\chrome 目录下,会有安装好的chrome 比如我机器上是 C:\Users\fire4nt\.cache\puppeteer\chrome\win64-117.0.5938.149\chrome-win64。 把这个目录复制为项目目录下的 assets\puppeteer_chrome 目录。

Starting Development

Start the app in the dev environment:

npm start

Packaging for Production

To package apps for the local platform:

npm run package

License

MIT

wxlivespy's People

Contributors

fire4nt avatar

Stargazers

LeonGu avatar Ray avatar  avatar LiXiangxin avatar zee avatar  avatar Wyatt Fang avatar luzq avatar LiuJie avatar  avatar Sophia Ramirez avatar  avatar  avatar huangpd avatar  avatar  avatar  avatar Ailong avatar  avatar Dan avatar 北北″ avatar Stu avatar NewCoderMan avatar Jack Lu avatar  avatar davidwei_001 avatar Mason Wang avatar  avatar  avatar  avatar  avatar  avatar Cherokee avatar  avatar  avatar  avatar kong_ avatar Yiyu Luo avatar david(大伟) avatar Dillon avatar  avatar  avatar XIN.ZHANG avatar HelloPuTao avatar lanyuer avatar  avatar  avatar  avatar  avatar 吴所畏惧 avatar IMike avatar Longix Guo avatar  avatar  avatar  avatar kun zheng avatar a16xxx avatar  avatar  avatar  avatar Xiaobing Mi avatar  avatar  avatar redstar avatar  avatar hkp avatar  avatar  avatar 莣仔 avatar wang986701735 avatar Joe avatar  avatar OrdinaryRoad avatar  Chen Zijian avatar Jarrick avatar  avatar  avatar  avatar mstar avatar  avatar Jeff Xie avatar Sure avatar  avatar Shaw Yan avatar  avatar dodge avatar  avatar  avatar  avatar  avatar  avatar  avatar qiye45 avatar  avatar Ikaros avatar GeekMonkey avatar  avatar lintanke avatar xs_icon avatar xiaosu avatar

Watchers

 avatar  avatar

wxlivespy's Issues

打开chrome浏览器报错

image

你好,我这里提示打开Chrome浏览器出错,是要做什么配置吗,实际这个领下没有Chrome.exe文件

Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2) 无法登录使用

[9900:1207/233622.490:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[9900:1207/233622.490:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
Not rewriting GET /index.js.map because the client did not send an HTTP accept header.
[2023-12-07 23:36:32.039] [debug] [main] IPC test: ping
[2023-12-07 23:36:32.039] [info]  [main] start listener on https://channels.weixin.qq.com/platform/live/liveBuild
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Failed to launch the browser process! spawn D:\GitHub_pro\wxlivespy\assets\puppeteer_chrome\chrome.exe ENOENT


TROUBLESHOOTING: https://pptr.dev/troubleshooting

    at ChildProcess.onClose (D:\GitHub_pro\wxlivespy\node_modules\.store\@[email protected]\node_modules\@puppeteer\browsers\src\launch.ts:393:11)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at Process.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[2023-12-07 23:36:32.051] [info]  [renderer] IPC test: pong

你好,数据能获取到,但是我拿不到中转后的数据。

import time
import requests

url = 'http://localhost:8000/forward'

while True:
try:
response = requests.get(url)
if response.status_code == 200:
data = response.text
# 处理数据,例如打印到控制台
print(data)
else:
print("HTTP请求失败,状态码:", response.status_code)
except requests.exceptions.RequestException as e:
print("HTTP请求错误:", e)
time.sleep(1) # 1秒钟

代码如上。。。
错误信息:
HTTP请求错误: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /forward (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000294183D8760>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

查看本地端口
netstat -ano|findstr 8000

没有返回值。。 是中转没有启动吗?

获取不到用户点赞行为

您好,目前监测页面上 只展示了总点赞数,但是当用户点赞的时候,在转发日志里面,没有某某用户点赞行为记录,既该工具所描述功能的第三项,也就是说代码decoded_type 是like这个场景监测不到
image

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.