twspace-dl icon indicating copy to clipboard operation
twspace-dl copied to clipboard

Download chat/transcription

Open Ryu1845 opened this issue 3 years ago • 7 comments

Ryu1845 avatar Oct 24 '21 12:10 Ryu1845

I'm kinda busy atm so I don't think I'll have time to work on this for a while

Ryu1845 avatar Dec 02 '21 07:12 Ryu1845

uses websocket with this endpoint wss://prod-chatman-ancillary-ap-northeast-1.pscp.tv/chatapi/v1/chatnow example of payload:

{
  "room": "1MnGnkoQROMJO",
  "body": {
    "body": "bank",
    "displayName": "Cleeve Clayer💎",
    "final": false,
    "ntpForBroadcasterFrame": 16525717854109876000,
    "ntpForLiveFrame": 16525717854109876000,
    "participant_index": 331604841,
    "programDateTime": "2021-12-05T11:45:24.814Z",
    "remoteID": "1drjeApYGlyjb",
    "timestamp": 1638704725994,
    "twitter_id": "1136997146723356673",
    "type": 45,
    "user_id": "1drjeApYGlyjb",
    "username": "KleibzR",
    "uuid": "6bbae592-a377-4934-a45f-4bde073402e2",
    "v": 2
  },
  "lang": "",
  "sender": {
    "user_id": "1drjeApYGlyjb",
    "username": "KleibzR",
    "display_name": "Cleeve Clayer💎",
    "profile_image_url": "https://pbs.twimg.com/profile_images/1455021125562683392/GvCEqAf7_reasonably_small.jpg",
    "participant_index": 331604841,
    "twitter_id": "1136997146723356673"
  },
  "timestamp": 1638704726014406000,
  "uuid": "6bbae592-a377-4934-a45f-4bde073402e2"
}

Ryu1845 avatar Dec 05 '21 11:12 Ryu1845

Prob easier and more stable if using chat history api

More detail here: SpaceCaptionsDownloader

WebSocket sometime disconnect without reason (I tried)

HitomaruKonpaku avatar Dec 13 '21 05:12 HitomaruKonpaku

Oh thanks, I might actually work on it if I don't have to learn how to use websockets XD

Ryu1845 avatar Dec 13 '21 08:12 Ryu1845

cf https://github.com/HoloArchivists/tslazer

Ryu1845 avatar Aug 19 '22 11:08 Ryu1845

hi @Ryu1845 ! any progress on this issue / would you like help on it?

not having a chat download feature is a blocker for us -- happy to help in some way :)

gatesyp avatar Dec 06 '22 15:12 gatesyp

Yes, I would definitely like some help on this feature. Although I have to admit I don't have much interest in this project anymore. This repository supports most of the features of twspace-dl albeit being in Javascript rather than python.

Ryu1845 avatar Dec 06 '22 15:12 Ryu1845