Real-time acquisition script in Douyin Live ChatRoom based on AutoX.js
Please note that this script does not apply to TikTok, it only applies to Douyin in mainland China
Because only the client can watch in some live of Douyin, it is impossible to obtain any information of ChatRoom through browser capture
Just use AutoX.js. Simply put, it can get any component in the Android program, and we can do more things after getting the component and component content.
You don't have to worry at all, these scripts just read the content of the new component. Even if you add an automatic reply to it, it's the same as a normal user clicking on the phone
But it is still not recommended to send a lot of repeated texts in a short period of time, otherwise even normal users will be risk controlled, and the Douyin server will intercept your messages accordingly
⚠ This script only supports Android system devices (of course not limited to mobile phones)
Open these after installing AutoX.js
(The "Connected to computer" option is turned on as needed. If this option is turned on, you can remotely/batch control a bunch of mobile phones to run scripts directly on the computer, Deploy in Visual Code Studio by referring to AutoX.js documentation)
Then open the live room you want to extract the chatroom information on Douyin, and it can start running
The live ChatRoom used as a demonstration I blocked the screen to avoid copyright issues, this is an active live ChatRoom I randomly found
When there is a new message in the live ChatRoom, the script will split the message and output it to the console, and you can get the fanclub, nickname, message and other information through the array
When a new gift is received, the script will split the giver's nickname and the gift, and automatically open the text input box to fill in the text and send it
When a new audience enters the live ChatRoom, split the information to get the nickname of the new audience entering the live broadcast room, fill it into the text box, and send a random welcome speech
Of course, you can also use websocket to output any information to any program on the computer (Unreal, unity...)
Please do not use the above for commercial use, enjoy!