Skip to content

📤 Parses kakaotalk open chat dump, and upload every single utterance to the Amazon S3.

License

Notifications You must be signed in to change notification settings

jooncco/kakaotalk-chat-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kakaotalk Chat Uploader

Kakaotalk is one of the most popular messenger in Korea.
This Spring Boot application is an uploader for kakaotalk chat dump files which reads & parses that text file and uploads utterances line by line to a Amazon S3 bucket.

Usage example: I want to upload last 30 minutes chat from a dump file.

./gradlew bR --args="--sourceFilePath=src/main/resources/chat/chat_dump.txt --minutes=30"

sourceFilePath and minutes argument above are required.

This app uses:

  • Localstack: a local AWS mock environment for testing.
  • AmazonS3Client: a client for Amazon S3 upload.

Setup

1. Install Localstack

AWS CLI

brew install awscli

Localstack

pip install awscli-local
awslocal --version

Create test bucket

awslocal s3api create-bucket --bucket test-bucket

2. Container Runtime

Rancher Desktop

brew install --cask rancher

Create kakaotalk-chat-uploader network

docker network create kakaotalk-chat-uploader

3. Docker Compose

Directory below will be mounted for localstack volume when we do docker compose.

mkdir src/test/resources/localstack

Docker compose

docker-compose up -d

Run

./gradlew bR --args="--sourceFilePath=src/main/resources/chat/chat_dump.txt --minutes=30"

About

📤 Parses kakaotalk open chat dump, and upload every single utterance to the Amazon S3.

Topics

Resources

License

Stars

Watchers

Forks

Languages