Skip to content

Commit

Permalink
Merge pull request #4 from minyoung347/develop
Browse files Browse the repository at this point in the history
parser headline update
  • Loading branch information
lumyjuwon authored May 17, 2019
2 parents 5b8016f + 1c2925c commit 352e4b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion korea_news_crawler/articleparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def clear_content(self, text):

def clear_headline(self, text):
# 기사 제목에서 필요없는 특수문자들을 지움
special_symbol_removed_headline = re.sub(self.special_symbol, '', text)
newline_symbol_removed_text = text.replace('\\n', '').replace('\\t', '')
special_symbol_removed_headline = re.sub(self.special_symbol, '', newline_symbol_removed_text)
return special_symbol_removed_headline

def find_news_totalpage(self, url):
Expand Down

0 comments on commit 352e4b5

Please sign in to comment.