Skip to content

Commit 38c92d0

Browse files
committed
fix: emoji 코드 삭제
1 parent 9ca0c14 commit 38c92d0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

crawling/koreatech_article/article.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from config import MYSQL_CONFIG
44
from config import BATCH_CONFIG
55

6+
from emoji import core
67
import requests
78
from bs4 import BeautifulSoup, Comment
89
import urllib3
@@ -406,8 +407,6 @@ def update_db(articles):
406407

407408
article.content = article.content.replace("'", """''""") # sql문에서 작은따옴표 이스케이프 처리
408409

409-
article.author = core.replace_emoji(article.author, replace='')
410-
411410
article.registered_at = parser.parse(article.registered_at).strftime("%Y-%m-%d %H:%M:%S")
412411

413412
try:

0 commit comments

Comments
 (0)