AfreecaTV Chat Search tool

Vod searches work on all afreecatv vods, but when trying to make a blog search I get the following error:

chat_reader.exe --filter “트림” afreecatv blog rmrm1313 > PRH_chat.txt

Error: reqwest::Error { kind: Request, url: Url { scheme: “https”, cannot_be_a_base: false, username: “”, password: None, host: Some(Domain(“bjapi.afreecatv.com”)), port: None, path: “/api/rmrm1313/vods/all”, query: Some(“per_page=60”), fragment: None }, source: hyper::Error(Connect, Custom { kind: Other, error: Custom { kind: InvalidData, error: AlertReceived(HandshakeFailure) } }) }

1 Like

Thanks for fixing it so quickly

1 Like

I’m getting that error on my end as well. afreecatv might’ve changed the api for that as well, however I wouldn’t recommend using the blog search feature regardless. It uses lots of bandwidth and can be extremely slow. I’ll work on it later today

1 Like

No change on afreecatv’s api, however it was in issue with the TLS crate I was using. I am reverting to the system TLS to do handshakes instead of chat_reader itself. Although, for most cases using the blog option will still be too slow because afreecatv’s api is very slow and your memory usage will most likely exceed 2GB. The update will be live later tonight

8:34,2:19:49,2:24:59,4:06:05,6:25:30

3 Likes

I tried to scan some afreecatv vods today, but the tool just creates an empty text file.

This is the command I am using:

chat_reader.exe afreecatv vod 91594894 > 91594894.txt

And I’m running it on this version of the tool.

An empty text file is also created when using this command:

chat_reader.exe twitch channel channel > channel.txt

Checking on this now

You need to specify the search action, you can append --clips, --vods, or both, to instruct chat_reader to read out either of those.

Example:
chat_reader.exe twitch channel --vods channel > channel.txt

Update: The issue was (yet again), with the cookie. This has been updated but I may look into automating the cookie refresh process. Updates have been posted

1 Like

That tool is crazy. Changes the game a lot

2 Likes

It was built targeting windows 11. It may work on windows 10, but I make no gurantee that it will continue to. If you’re using Windows, upgrading to 11 is free and preferable

Bumping this as I’m trying to use the AfreecaTV functionality for the first time in a long while.
After using the following command (without the parentheses):

chat_reader.exe afreecatv vod (ID)

I’m getting the error below:
Error: “nTitleNo missing”

I’ve tried it with many different VOD IDs but keep getting that same error. Has there been any recent change to the syntax of this functionality? :slight_smile:

No, but it looks like it has been affected by a change in the layout of afreecatv’s html. At this point, I’m considering closing the chat_reader project. Personally, I haven’t used chat_reader in a while and haven’t felt the motivation to continue adjusting it for changes that sites make, because the architecture of it makes it hard to do. At this point, I’d recommend transition to another utility, like yt-dlp, which have more experienced developers contributing.

1 Like

Could you keep it open until Twitch makes the next big changes which render it unusable and close it afterwards if you don’t want to keep maintaining it?

I’ll switch to yt-dlp eventually, but I got used to chat_reader as I’m running it daily and I’d like to postpone learning how to download chats with other tools for as long as I can lol

Yeah, it’ll still be available for the time being.

1 Like

Thank you for the reply! I totally understand it might not be worth it for you to keep on investing your time and energy onto something that will require constant updates to keep up with the sites’ architecture changes. I was not aware that yt-dlp allowed you to download live chats, so I’ll do some digging on how I could do that. Really thankful for the recommendation! :smiley:

I’m assuming this broke for chat_reader recently, so I’d bet it’s also broken on yt-dlp’s end for afreecatv at the moment. yt-dlp’s twitch support for downloading chats is pretty poor, however there are many alternatives that more or less do the same thing.

1 Like

Is there still a way to search afreecatv chats?