Coder Social home page Coder Social logo

processreporterwinpy's Introduction

此项目已停止维护,请使用现在仍处于维护状态的TNXG/Kizuna,或者是ChingCdesu/ShiroProcessReporterInnei/ProcessReporterCli

Process Reporter For Windows Python

Process Reporter for Winpy 是一个使用Python开发的Windows应用程序。它旨在实时报告当前用户在PC上正在使用的前台应用程序的名称,以及正在播放的任何媒体信息,并将报告发送到 Shiro

!!!ProcessReporterWinpy的易语言启动器生成的配置项为过时内容,请参照本文档进行配置!!!

该程序的实现借鉴了 Linux版本 的报告程序。

获取媒体播放信息

使用Python获取网易云正在播放的音乐

使用方法

这里提供了三种使用方法:

1. 使用源代码

git clone https://github.com/TNXG/ProcessReporterWinpy.git
cd ProcessReporterWinpy
pip install -r requirements.txt

example_config.yml重命名为 config.yml,并在config.yml文件中填写配置项。

然后运行main.py即可:

python main.py --path "运行目录的路径"

2. 使用发布版本

您可以从 Releases页面 下载已发布的版本。

example_config.yml重命名为 config.yml,并在config.yml文件中填写配置项。

processforwinpy.exe --path "运行目录的路径"

3. ProcessReporterWinpy Launcher

我们提供了一个简单的启动器,您可以在 Releases 页面 下载已发布的版本。 ProcessReporterWinpy Launcher 可以帮助您在后台运行 ProcessReporterWinpy,最小化到托盘,而无需打开命令行窗口。

在 0.0.2-rc2 之前的版本,--path为必填项。

配置项

example_config.yml重命名为 config.yml,并在config.yml文件中填写配置项。

config:
  api_url: 'apiurl' # https://api.example.com/api/v2/fn/ps/update
  api_key: 'apikey' # 设置的key
  report_time: '10' # 上报时间间隔,单位秒
  keywords: # 关键词屏蔽,数组形式
    - 'pronhub'

  # replace的第一行与replace_to的第一行对应,以此类推,`cloudmusic`会被替换为`网易云音乐`,`msedge`会被替换为`Microsoft Edge`
  # 请不要删除配置项中默认替换的项目
  # 更多替换项查看`Innei/Shiro/blob/main/src/components/layout/header/internal/Activity.tsx`
  replace:
    - 'cloudmusic'
    - 'msedge'
  replace_to:
    - '网易云音乐'
    - 'Microsoft Edge'

其他系统的报告程序

请根据您的需求选择适合的版本和使用方法。如果有任何问题,请随时提问。

提问前请先阅读tvvocold/How-To-Ask-Questions-The-Smart-Way: How To Ask Questions The Smart Way 《提问的智慧》中文版 (github.com)

processreporterwinpy's People

Contributors

renovate[bot] avatar tnxg avatar ttimochan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

processreporterwinpy's Issues

开启代理后无法连接服务器

2024-08-18 11:56:58,416 - ERROR - HTTPSConnectionPool(host='me.liuyaowen.club', port=443): Max retries exceeded with url: /api/v2/fn/ps/update (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))
2024-08-18 11:57:00,466 - ERROR - HTTPSConnectionPool(host='me.liuyaowen.club', port=443): Max retries exceeded with url: /api/v2/fn/ps/update (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))
2024-08-18 11:57:05,390 - ERROR - HTTPSConnectionPool(host='me.liuyaowen.club', port=443): Max retries exceeded with url: /api/v2/fn/ps/update (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))))
2024-08-18 11:57:06,923 - ERROR - Invalid URL 'apiurl': No scheme supplied. Perhaps you meant https://apiurl?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

gomod
core/NcmNowPlay/go.mod
  • go 1.21.6
pip_requirements
requirements.txt

  • Check this box to trigger a request for Renovate to run again on this repository

许多应用上报后不显示

例如chrome,微信,网易云音乐等不会显示。
会显示的应用有:vscode,Windows terminal,explorer
音乐播放显示正常。

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.