Giter Site home page Giter Site logo

kometube's Introduction

KomeTube

讀取Youtube Live聊天室留言
提供投票統計、文字猜謎、評分等互動功能

操作方法:

  1. 左上角輸入直播影片網址
  2. 點擊開始
    開始後便會持續讀取聊天室留言並顯示於下方
    若停止後重新開始時,則只會從當下聊天室存在留言開始擷取

程式方法

  1. 由輸入的直播影片網址中取得Video ID
  2. 透過Video ID取得聊天室HTML內容與Cookie (https://www.youtube.com/live_chat?v={vid}&is_popout=1)
  3. 從HTML內容中解析出YtCfg資料、INNERTUBE_CONTEXT、INNERTUBE_API_KEY與continuation參數 (window["ytInitialData"]的值)
  4. 合併INNERTUBE_CONTEXT與continuation參數,並序列化為json
  5. 利用POST方法將INNERTUBE_CONTEXT與continuation參數代入StringContent取得聊天室留言以及下一次的continuation參數 (https://www.youtube.com/youtubei/v1/live_chat/get_live_chat?key={INNERTUBE_API_KEY})
  6. 循環利用INNERTUBE_CONTEXT與新的continuation參數取得新留言

Html TextBlock

支援同時顯示文字與圖片功能
HtmlTextBlock UI元件原始碼:
https://github.com/TheBauwssss/AdvancedHtmlTextBlock

kometube's People

Contributors

dghkd avatar

Stargazers

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

Watchers

 avatar  avatar

kometube's Issues

新增多種訊息捕捉

共更改了以下 6 個檔案
KomeTube/Kernel/CommentExportData.cs
KomeTube/Kernel/CommentLoader.cs
KomeTube/Kernel/YtLiveChatDataModel/CommentData.cs
KomeTube/MainWindow.xaml
KomeTube/ViewModel/CommentVM.cs
KomeTube/ViewModel/MainWindowVM.cs

主要為新增
輸出內容
付費貼圖資訊
贈禮會員資訊
會員贈禮通知
獲得會員贈禮通知
會員訊息資訊
新會員訊息、里程碑訊息 等內容

可利用此連結進行比較
master...JC-Chung:KomeTube:master

僅以自己獲取過的訊息去新增,可能還有漏掉的

請問有辦法利用 命令提示字元 的方式開啟程式並執行嗎

請問有辦法利用 命令提示字元 的方式開啟程式並執行嗎?
例如: C:\>KomeTube.exe https://www.youtube.com/watch?v=xxxxxxxxxxx
CMD開啟 KomeTube.exe 後,自動將網址放入輸入框並開始抓取留言
謝謝

另外最新版使用 HtmlTextBlock 似乎就無法像之前 TextBox 可以直接在程式內複製聊天訊息
先前查詢好像沒有解決方法,因為本身對該語言不熟,所以一些修改都是從現有的程式碼複製修改
想請教是否有好的方法改善
謝謝

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.