Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Would it be possible to parse plain text as JSON file? #629

Open
1 task done
sunkhaskasis opened this issue Mar 22, 2023 · 5 comments
Open
1 task done

Comments

@sunkhaskasis
Copy link
Contributor

Checklist

Write stuff here

Suppose I have chat stored in plain .txt, like this (warning: a lot of text): https://logs.ivr.fi/channel/forsen/2018/05/08

Would it somehow be possible to parse as a JSON chat log that can be rendered by the Downloader? I've had this question stuck in my head for a couple of years now because I wanted to somehow be able to render chat for old Forsen VODs, but I've no idea where to begin with this.

@lay295
Copy link
Owner

lay295 commented Mar 22, 2023

It's possible, just a lot of imperfections. I did make a program a few years ago that would convert overrustle logs or logs.ivr.fi logs into JSONs compatible with this program. It would probably be cool and worth it to put in the main program, dunno though :)

A few issues are

  1. No badges
  2. No way to really tell a first party emote from another streamer (an example in this is nymnOkay)
  3. No way to know old 3rd party emotes

image

@ScrubN
Copy link
Collaborator

ScrubN commented Mar 23, 2023

For a while, I've been thinking of making a tool to help modify/generate bogus test chats en masse. Perhaps it would be best to integrate plaintext/overrustle/chatterino log parsing in that due to the large amount of unknowns, and we can just link to that in the README somewhere.

@sunkhaskasis
Copy link
Contributor Author

sunkhaskasis commented Mar 23, 2023 via email

@fostotifyu
Copy link

fostotifyu commented May 31, 2023

I just wanted to bump this topic. I'm by no means an expert on this, but I have wanted to take the chat logs we can get from logs.ivr.fi and somehow use them with TwitchDownloader for a while as well. If parsing a plain .txt file is not possible, I have found by adding "?json=true" to a given justlogs url, it does produce a .json file for the chat log, but it seems to be formatted differently than what TwitchDownloader allows:

https://logs.ivr.fi/channel/forsen/2018/05/08?json=true

Forgive me for my ignorance if this would take a lot of work to parse and make compatible, but either way, I am interested in somehow making old/deleted chat logs viable in TwitchDownloader, one way or another.

@ScrubN
Copy link
Collaborator

ScrubN commented Jun 11, 2023

For a while, I've been thinking of making a tool to help modify/generate bogus test chats en masse. Perhaps it would be best to integrate plaintext/overrustle/chatterino log parsing in that due to the large amount of unknowns, and we can just link to that in the README somewhere.

I have thrown away all of my existing code in order to switch UI frameworks and have found it to be progressing much smoother than it was before. I hope to have this done within a few weeks (no promises) but expect it to take a while since this is my first time using AvaloniaUI.

I will post the github link here when it is done and possibly in the README somewhere with @lay295's permission. As it stands now the application is a generally prettier visualization for chat jsons with some buttons to add random fake messages/data.

I just wanted to bump this topic. I'm by no means an expert on this, but I have wanted to take the chat logs we can get from logs.ivr.fi and somehow use them with TwitchDownloader for a while as well. If parsing a plain .txt file is not possible, I have found by adding "?json=true" to a given justlogs url, it does produce a .json file for the chat log, but it seems to be formatted differently than what TwitchDownloader allows:

https://logs.ivr.fi/channel/forsen/2018/05/08?json=true

Forgive me for my ignorance if this would take a lot of work to parse and make compatible, but either way, I am interested in somehow making old/deleted chat logs viable in TwitchDownloader, one way or another.

I will do my best to implement logs.ivr.fi chat jsons once the base application is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants