-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from h3yon/week03/word-cloud
Week03/word cloud
- Loading branch information
Showing
9 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
๏ปฟDate,User,Message | ||
2021-07-02 12:00:26,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","<์ฐ์ปดํฌ์ธํธ ์๋ฉธ ์๋ด> | ||
|
||
๊ฐํฌ์ค๋, ํ์๊ฐ์ ๊ธฐ๋ ์ฐ์ปดํฌ์ธํธ 2๋ง ํฌ์ธํธ๊ฐ ์ค๋ ๋ง๋ฃ๋ ์์ ์ ๋๋ค. | ||
|
||
์๊ฐ์ ์ฒญ ํ์ด์ง 'ํฌ์ธํธ'๋์์ ๊ฐํฌ์ค๋์ ์ฐ์ปดํฌ์ธํธ๋ฅผ ์ฌ์ฉํ์ค ์ ์์ต๋๋ค. | ||
|
||
๋ง๋ฃ์ผ์ด ์ง๋๋ฉด ์ฐ์ปดํฌ์ธํธ๋ ์๋์ผ๋ก ์๋ฉธ๋์ด ์ฌ์ฉ์ด ๋ถ๊ฐํฉ๋๋ค. | ||
|
||
๊ฐ์ฌํฉ๋๋ค. | ||
|
||
์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ ๋ฐ๋ก๊ฐ๊ธฐ | ||
> https://spartacodingclub.kr/ | ||
|
||
์๋ด์ผ" | ||
2021-08-02 09:00:02,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์๋ ํ์ธ์ ๋, | ||
|
||
๋ค์ ์ฃผ ์์์ผ๋ถํฐ, | ||
์ ์ฃผ์ฐจ ๊ฐ์๊ฐ ๋ซํ๋๋ค. | ||
|
||
์ผ์์ผ๊น์ง๋ง ์๊ฐ ๊ฐ๋ฅํ์๋, ์ด๋ฒ ์ฃผ ์์ ๊ผฌ์ฅ ๋ง์ณ์ฃผ์ธ์!" | ||
2021-08-31 14:46:16,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์๋ ํ์ธ์, ๊ฐํฌ์ค๋. | ||
๋์ด ํ ๋๊น์ง ๋ฌ๋ฆฌ๋ 9์๊ฐ ์ฝ๋ฉ ๋ง๋ผํค, ๐ฅ์คํ๋ฅดํค๐ฅ์ ์ ์ฒญ์ด ์๋ฃ๋์์ต๋๋ค! | ||
|
||
๐ํ์ฌ ์ผ์ | ||
์ผ์: 2021.09.04 9p.m ~2021.09.05 6a.m | ||
์ฅ์: ์คํ๋ฅดํค์ ๋ฉํ๋ฒ์ค 'Gather' (๊ฒ๋ ์ ์๋งํฌ๋ ํ์ฌ ๋น์ผ ์๋ด๋๋ฆฝ๋๋ค.) | ||
|
||
์ฆ๊ฑฐ์๊ณผ ๋ฟ๋ฏํจ์ผ๋ก ์ฑ์์ง ์คํ๋ฅดํค์ ์ํด, ์ฐจ์ฃผ ๋ ๊ฐ์ง๋ฅผ ์ ๋ฌ๋๋ฆด ์์ ์ ๋" | ||
2021-09-01 15:46:52,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์๋ ํ์ธ์, ๊ฐํฌ์ค๋. | ||
๐ฅ์คํ๋ฅดํค๐ฅ์์ ๋ชฉํ๋ฅผ ํฅํด ํ์ฐจ๊ฒ ๋ฌ๋ฆด ์ค๋นํ๊ณ ๊ณ์ ๊ฐ์? | ||
|
||
๊ธฐ๋ค๋ฆฌ์๋ ์คํ๋ฅดํค์ 2๋ฐฐ๋ก ์ฆ๊ธธ ์ ์๋ ๐๊ฐ์ด๋ ๋งต๐์ ์ ๋ฌ ๋๋ฆฝ๋๋ค! | ||
|
||
๋งต ์ค๋ช ์์ ์์ฃผ ๋ฏธ์ ์ด ๋ชจ๋ ํฌํจ๋์ด ์์ผ๋, ์๋ ๋ฒํผ์ ๋๋ฌ ๊ผผ๊ผผํ ์ดํด์ฃผ์ธ์! | ||
|
||
๊ฐํฌ์ค๋์ ์ํด ์ ์ฑ๊ป ์ค๋นํ โ์คํ๋ฅดํค ํคํธโ๋ ์ค๋ ๋ฐ์ก๋์์ต๋๋ค. ๋๊ทผ๊ฑฐ๋ฆฌ๋ ๋ง์์ผ๋ก ์กฐ๊ธ๋ง ๊ธฐ" | ||
2021-09-03 18:14:17,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์๋ ํ์ธ์, ๊ฐํฌ์ค๋. | ||
๋ด์ผ์ด๋ฉด ๊ธฐ๋ค๋ฆฌ์๋ ์คํ๋ฅดํค์ด ์์๋ฉ๋๋ค๐ฅ | ||
|
||
9์๊ฐ๋์ ์ด์ ์ ์ผ๋ก ์ฝ๋ฉํ๊ณ , ๋ ์ค๋ฅด๋ ํด๋ฅผ ๋ง์ ์ค๋น ๋์ จ๋์?๐ | ||
|
||
์คํ๋ฅดํค ํ์ฌ์ฅ์ ์ฐธ์ฌ ๋งํฌ๋ 09/03 ์ ๋ 7:00, ๋ด์ผ ๋ฐ์ก๋๋ฆด ์์ ์ ๋๋ค. | ||
๊ธฐ๋์ ์ด์ ์ ๊ฐ๋ ์๊ณ , ๋ด์ผ ์คํ๋ฅดํค์์ ๋ง๋์๐ฅ" | ||
2021-09-04 14:59:40,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","๊ฐํฌ์ค๋, ์คํ๋ฅดํค์ ์์นจ์ด ๋ฐ์์ต๋๋ค! | ||
์คํ๋ฅดํค์์ ์ง์ค๋ ฅ์ ๋ถํ์ธ ์ค๋น๋์ จ๋์? | ||
|
||
์คํ๋ฅดํค์ ๋ค๊ณ ์ค์ ์ผ ํ๋ ์ค๋น๋ฌผ์ด ํ๋ ์๋ค๋ฉด, ํด๋ฐ ๋๊น์ง ํ์ค๋ฅผ ์ด์ ๋ฟ๐ฅ | ||
|
||
์ค๋ 8:00p.m์, ์ฝ๋ฉ ๋ ์ด์ค๊ฐ ์์๋ '๊ฒฝ๊ธฐ์ฅ'์ด ์ ๊ฒฉ ๊ณต๊ฐ๋ฉ๋๋ค! ํ์ฌ ์์ ์ ๊น์ง, ์คํ๋ฅดํค๋ง์ ๋ฉํ๋ฒ์ค๋ฅผ ๋ง์๊ป ์ฆ๊ฒจ์ฃผ์ธ์. | ||
|
||
์ฐ-ํ๊ฒ ์ฝ๋ฉ์ ๋ชฐ์ ํ ์ค๋นํ๊ณ , ์ฐ๋ฆฌ ์กฐ๊ธ ์๋ค" | ||
2021-09-04 20:15:55,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","๊ฐํฌ์ค๋, ์ด์ฝ๋ฉํ ์ค๋น๋์ จ๋์? | ||
๊ธฐ๋ค๋ฆฌ์๋ ์คํ๋ฅดํค ๊ฒฝ๊ธฐ์ฅ์ด ๋.๋.์ด ์ ๊ฒฉ ์คํ๋์์ต๋๋ค! | ||
|
||
์ ์ฅํ์๋ฉด ๊ผญ ์์ง ๋ง์์ผ ํ๋ ๊ฑด, ๋ฐ๋ก ์ฒดํฌ์ธ๐ ์ฒดํฌ์ธ์ ์์ฑํด์ฃผ์ ์ผ, ์์ฃผ ๋ฏธ์ ์ ์ฒซ ๊ฑธ์์ ๋ด๋์ ์ ์์ด์! | ||
|
||
์ผ์ ์ ๋ณด๋ด๋๋ฆฐ ๊ฐ์ด๋๋งต์ ํ์ฉํ์๋ฉด, 2๋ฐฐ๋ก ์คํ๋ฅดํค์ ์ฆ๊ธฐ์ค ์ ์์ผ๋ ๊ผญ ์ฐธ์กฐํด์ฃผ์ธ์๐ | ||
|
||
9์๊ฐ, ์์ฃผ๋ฅผ ํฅํ ๐ฅ์คํ๋ฅดํค๐ฅ | ||
์ง๊ธ" | ||
2021-09-08 12:49:22,"ํฌํฌ","๐์ฑ๋์ถ๊ฐํ๊ณ ํ ์ธ์ฝ๋ ๋ฐ๊ธฐ๐" | ||
2021-09-08 12:49:21,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์คํ๋ฅดํ์ ์น๊ตฌ๊ฐ ๋์ด์ฃผ์ธ์!๐ซ | ||
|
||
๊ฐ์ฌ์ ๋ง์์ ๋ด์ ์ ๊ธฐ์ ์ผ๋ก ํ ์ธ์ฝ๋๋ฅผ ๋ณด๋ด๋๋ฆฐ๋ต๋๋ค! | ||
|
||
๐ ์ฌ์ฉ๋ฐฉ๋ฒ: ๋ฃ๊ณ ์ถ์ ์์ ์ ์ ํํ๊ณ , ๊ฒฐ์ ์ ํ ์ธ์ฝ๋๋์ ์ ๋ ฅ! | ||
|
||
์คํ๋ฅดํ์ ์ฆ์ฝํ๋ฌ ๊ฐ๋ณผ๊น์?๐ฝ" | ||
2021-09-08 14:16:58,"ํฌํฌ","๐๋ ๋ง์ ์์ ๋๋ฌ๋ณด๊ธฐ" | ||
2021-09-08 14:16:58,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","๋ ๋ฒจ์ ๋ง๊ฒ ์ ํํ ์ ์๋ ๋ค์ํ ๊ฐ์ | ||
|
||
๐์ฌ๋ฐ๋๊ฑธ ๋ง๋ค์ด ๋ณผ๋! ์ด๋ณด์ฝ๋ฉ | ||
๐์ ๋ฌด ํจ์จ ์ฆ๊ฐ! ์ค๋ฌด์ฝ๋ฉ | ||
๐์ปค๋ฆฌ์ด์ ํ์ ์ฒซ ๊ฑธ์! ์ฌํ์ฝ๋ฉ | ||
|
||
๋ชฉ์ ์ ๋ง๋ ๊ฐ์, ์คํ๋ฅดํ๊ฐ ์ค๋นํ์ด์! | ||
์ผ๋ฆฌ๋ฒ๋ ํํ๋ ๊ผญ ์ฑ๊ธฐ์ธ์๐" | ||
2021-09-11 21:08:13,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","๊ฐํฌ์ค ๋, ์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ์ ์ค์ ๊ฑธ ํ์ํฉ๋๋ค! | ||
|
||
๊ฐํฌ์ค ๋์ด ์ ์ฒญํ์ ์์ ์ทจ๋ฏธ์ ์ฐฐ๋ก๊ถํฉ์ธ ์ฝ๋ฉ ์์ ๋ค์ด ๊ฐํฌ์ค ๋์ ๊ธฐ๋ค๋ฆฌ๊ณ ์์ด์. ์ง๊ธ ๋ฐ๋ก ๋ฏธ์ ๋ฐฉ์ ์ ์ฅํ์ ์ ํํ ์ฝ๋ฉ ๊ฐ์๋ฅผ ๋ฃ๊ณ , ๋ฏธ์ ์ ์ํํด์ฃผ์ธ์!๐ | ||
|
||
ํํ ๊ฐํฌ์ค ๋์ด ๋ ํํด์ง ์ ์๋ ์คํ๋ฅดํ์ ํจ๊ปํด์!๐" | ||
2021-09-14 20:02:00,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","'์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ' ์ฑ๋์ ์ถ๊ฐํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. | ||
์์ผ๋ก ๋ค์ํ ์์๊ณผ ํํ/์ ๋ณด๋ฅผ ๋ฉ์์ง๋ก ๋ฐ์ผ์ค ์ ์์ต๋๋ค. | ||
|
||
์ฝ๋ฉ๋ช ๊ฐ ์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ์ ์ค์ ๊ฒ์ ํ์ํฉ๋๋ค! | ||
์ฝ๋ฉ๊ณผ ์นํด์ง ์ค๋น ๋์ จ๋์? | ||
|
||
๋ด ๋ ๋ฒจ์ ๋ง์ถ ๊ฐ์, ์๋ ๋ฒํผ์ผ๋ก ์ฐพ์๋ณด์ธ์! | ||
|
||
์ฑ๋ ์ถ๊ฐ ์ผ์(ํ๊ตญ์๊ฐ ๊ธฐ์ค): 2021๋ 09์ 14์ผ 20:01 | ||
์์ ๊ฑฐ๋ถ: ํ>์ฑ๋ ์ฐจ๋จ" | ||
2021-09-14 20:03:27,"ํฌํฌ","๐์ฑ๋์ถ๊ฐํ๊ณ ํ ์ธ์ฝ๋ ๋ฐ๊ธฐ๐" | ||
2021-09-14 20:03:27,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์คํ๋ฅดํ์ ์น๊ตฌ๊ฐ ๋์ด์ฃผ์ธ์!๐ซ | ||
|
||
๊ฐ์ฌ์ ๋ง์์ ๋ด์ ์ ๊ธฐ์ ์ผ๋ก ํ ์ธ์ฝ๋๋ฅผ ๋ณด๋ด๋๋ฆฐ๋ต๋๋ค! | ||
|
||
๐ ์ฌ์ฉ๋ฐฉ๋ฒ: ๋ฃ๊ณ ์ถ์ ์์ ์ ์ ํํ๊ณ , ๊ฒฐ์ ์ ํ ์ธ์ฝ๋๋์ ์ ๋ ฅ! | ||
|
||
์คํ๋ฅดํ์ ์ฆ์ฝํ๋ฌ ๊ฐ๋ณผ๊น์?๐ฝ" | ||
2021-09-18 14:01:14,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","(๊ด๊ณ )๐ฅ์์ดํฐ13 ์ฆ์ ์ด๋ฒคํธ๐ฅ | ||
ํ ์ธ๊ฐ์ ์ฝ๋ฉ๋ฃ๊ณ , ์์ดํฐ13๊น์ง ๋ฐ์!" | ||
2021-09-23 00:22:22,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","์คํ๋ฅดํ ๋ฏธ์ START!๐ | ||
|
||
๊ฐํฌ์ค ๋์ด ์ ์ฒญํ์ ํ์ด์ฌ ํผ์๋๊ธฐ ํจํค์ง ๋ฏธ์ ์ ์ ํ ์๊ฐ์ ์ง๊ธ์ผ๋ก๋ถํฐ 48์๊ฐ์ ๋๋ค! 09์ 25์ผ 00:21๊น์ง ๊ฐ์๋ฅผ ๋ชจ๋ ์๊ฐํ๊ณ , ๋ฏธ์ ์ ์ ์ถํด์ฃผ์ธ์! | ||
|
||
๋ฏธ์ ์ฑ๊ณต ์ ์๋ ์๋ชจ๋๋ ์ดํน๊ธ ๊ฒฝํ๋ค๋ ๊ผญ ๋ฐ์๊ฐ์ธ์!๐ | ||
|
||
(๊ฟํ๐ฏ : ๋ฏธ์ ์ค๊ฐ์ค๊ฐ ๊ฐ๋ฐ์ผ์ง๋ฅผ ์ด์ฌํ ์ฐ๋ฉด ๊ฒฝํ ๋น์ฒจ ํ๋ฅ ์ด ๋์์ ธ์)" | ||
2021-09-23 01:22:00,"์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ","โฐ ๋ฒ์จ ๋ฏธ์ ์์ํ์ง 1์๊ฐ์ด ์ง๋ฌ์ด์! | ||
|
||
47์๊ฐ์ด๋ ๋จ์๋ค๊ณ , ์์ฌํ์ง ๋ง๊ณ ! ์ง๊ธ๋ถํฐ ๋ถ์ง๋ฐํ ์๊ฐํด๋ณด์๋ ๊ฑด ์ด๋จ๊น์~? | ||
|
||
์ฒ๋ฆฌ๊ธธ๋ ํ ๊ฑธ์๋ถํฐ๐ฃ ์ผ๋จ ๋ฃ๊ธฐ ์์ํ๋ฉด ๋๋ฌด ์ฌ๋ฐ์ด์ ๋น ์ ธ๋์ฌ ์ ์์ ๊ฑธ์?! ๊ฐํฌ์ค ๋์ด ๋นจ๋ฆฌ ๋ฏธ์ ์ ์๋ฃํ ์๋ก ๊ฒฝํ์ ๋ฐ์๊ฐ ํ๋ฅ ์ด ๋์์ ธ์!" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
์๋ , ์คํ๋ฅดํ! | ||
1๋ฒ์งธ ์ค์ด์์ | ||
2๋ฒ์งธ ์ค์ด์์ | ||
3๋ฒ์งธ ์ค์ด์์ | ||
4๋ฒ์งธ ์ค์ด์์ | ||
5๋ฒ์งธ ์ค์ด์์ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from wordcloud import WordCloud | ||
from PIL import Image | ||
import numpy as np | ||
import random | ||
|
||
text = '' | ||
with open("kakao.csv", "r", encoding="utf-8") as f: | ||
lines = f.readlines() | ||
for line in lines: | ||
result = line.split(',"') | ||
if len(result) == 3: | ||
text += result[2].replace('ใ ','').replace('ใ ','').replace('์ฑ๋์ถ๊ฐํ๊ณ ','').replace('ใ ','').replace('์ด๋ชจํฐ์ฝ','').replace('์ฌ์ง','').replace('"','') | ||
|
||
def grey_color_func(word, font_size, position, orientation, random_state=None, | ||
**kwargs): | ||
return "hsl(0, 0%%, %d%%)" % random.randint(60, 100) | ||
|
||
# mask = np.array(Image.open('cloud.png')) | ||
mask = np.array(Image.open('sherlock.png')) | ||
wc = WordCloud(font_path='/Users/we/Library/Fonts/SCDream5.otf', background_color="Black", mask=mask, max_font_size=100) | ||
wc.generate(text) | ||
wc.recolor(color_func=grey_color_func) | ||
wc.to_file("sherlock_masked.png") |