AfreecaTV Chat Search tool

Installing is relatively straightforward, you’ll first need to the cargo and the rust compiler: Install Rust - Rust Programming Language

Next make sure you’ve got the source downloaded and unzipped as a folder

After that, open up your terminal and type in cargo new chat_reader This will create a folder into your currently directory (usually $HOME) with some a few files.

Next, copy the Cargo.toml and Cargo.lock files I have provided and place them in the chat_reader directory that was just created.

After that copy everything from my src folder into chat_reader/src

You may see a message stating that you are overwriting files, just proceed, it’s expected.

After you’re done, run cargo build --release inside the chat_reader folder and it will build a binary stored inside target/release called chat_reader You can use that and move it to some other folder if you’d like. Additionally, you can run the program directly with cargo build --release

The instructions may be a little daunting if you don’t regularly do this, so lemme know if there’s anything to make clear.

Thank you. The install is simple, just the instructions were previously on GitHub and I couldn’t find them anywhere anymore

1 Like

Would adding a way to log into afreecatv with the tool/ import cookies be difficult/ time consuming to implement?

A lot of afreecatv streams are 19+ and the tool doesn’t seem to work on those.

I’ve already embedded a cookie into it that should bypass the age limits. It might’ve expired or there may be a bug. Could you pm me the vod or blog that’s causing problems?

1 Like

Most PRH vods, like this one for example:

Ah the issue has been fixed. Afreecatv is checking for an extra parameter in the cookie. The linux is version has been updated with a fix: https://drive.google.com/file/d/1AXzocv4mJxhzv8DaswoSKwdgwyXCjTV6/view?usp=sharing

1 Like

I’m running the Windows version. Will there be a fix for that one as well?

Depending on when I get back to my house or I figure out how to make windows builds come out of a Linux host, it can happen by atleast Saturday. However, I would recommend using WSL if you’re on windows as I primarily develop for Linux because it’s much easier.

I tried using your online tool but replaced the chat-reader file with the updated one and got this error

Replit’s runtime uses a very old version of glibc. The previous build I put on replit was statically linked with MUSL and doesn’t require glibc at all (only depending on the kernel syscalls). For now, I have updated the src folder where you will be able to build chat_reader on your own computer.

I don’t often try to make releases with MUSL because of many issues I face when using crates that interact with C or other languages. The binaries will also be much larger because of static linking

So i’ve rebuilt it, It works fine for normal vods, but not the agre restricted ones
image

Hmm, I don’t think that id is for a vod, make sure the URL has the vod subdomain. Currently, I’m working on getting generic players working for afreecatv. For example: this age restricted prh video will work now- https://vod.afreecatv.com/player/90995076

I’ve finally been able to coerce LLVM into generating binaries for other platforms. Expect Windows and MacOS updates to be on track with Linux

1 Like

https://vod.afreecatv.com/player/91181522
When I open this in incognito I get this:

However when I open your link, I get this (it isn’t fully age restricted as you can play some parts without logging in) :

It seems like these videos land you to the login page instead of the actual video, could you try implementing a username/password or something? Thanks

Have the commands for channel wide searches on afreecatv and twitch changed on the windows tool?

For afreecatv vods it’s this one:

afreecatv vod 76595998 > 76595998.txt

But I get an error trying to run blog wide searches this with --filter or -f (–filter wasn’t expected)

afreecatv blog rmrm1313 --filter 트림 > t2.txt

And the old one for twitch channel wide searches doesn’t work anymore:

twitch channel channel > channel.txt

No error, but nothing happens.

Saved the previous tool version just in case and everything works fine there, other that afreecatv 19+ chat downloads.

can you try it with this link? https://vod.afreecatv.com/player/91181522

Error: “nTitleNo missing”

You can download the windows version from here:

https://drive.google.com/file/d/1hUqIW0u2hb_FDqG_EUynyHJY8Yi2EVyq/view?usp=sharing

Make sure to install rust first:

Okay, some stuff to clear up: I have made a few changes to the interface in order to reuse functions and make features much more cohesive.

The new syntax (for twitch is) chat_reader --filter "burp|belch" twitch channel somename --clips --vods
Which will search through the clips and vods of a channel and will filter accordingly. You can remove either flag to match your needs.

For afreecatv: chat_reader --filter "트림" afreecatv blog 91240657

Also for Windows and other platforms, you do not need any build tools to run (unless you are compiling from src). You just need the binary/exe.

1 Like

Mistake on my part, I was not passing the bypass cookie when getting initial page of the video, which caused chat_reader to get redirected to the login and not the actual video

All Afreecatv vods are working including the age restricted ones. Rebuilding with fixes… Updates are live

2 Likes