This project allows you to scrape all comments from a TikTok live stream and save them to a CSV file in the chat
folder.
This project is built on top of the TikTok-Live-Connector library by zerodytrash. Make sure to check out their repository for more information and to show your support.
Before running this project, make sure you have the following installed:
-
Clone this repository to your local machine.
git clone https://github.com/ATHman3/tiktok_live_comments_scrap.git
-
Navigate to the project directory:
cd tiktok_live_comments_scrap
-
Install the project dependencies by running the following command:
npm install
To run the project and scrape TikTok live comments to a CSV file, use the following command:
node live.js <TIKTOK_USERNAME>
tiktok_live_comments_scrap/
├── chat/
│ ├── TIKTOK_USERNAME_date1.csv
│ ├── TIKTOK_USERNAME_date2.csv
│ └*
└*