Skip to content

Commit

Permalink
edit printing message
Browse files Browse the repository at this point in the history
  • Loading branch information
lumyjuwon committed Mar 27, 2022
1 parent 0baaf22 commit 55799d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions korea_news_crawler/articlecrawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ def crawling(self, category_name):
url_format = f'http://news.naver.com/main/list.nhn?mode=LSD&mid=sec&sid1={self.categories.get(category_name)}&date='
# start_year년 start_month월 start_day일 부터 ~ end_year년 end_month월 end_day일까지 기사를 수집합니다.
target_urls = self.make_news_page_url(url_format, self.date)
print(f'{category_name} Urls are generated')

print(category_name + " Urls are generated")
print("The crawler starts")

print(f'{category_name} is collecting ...')
for url in target_urls:
request = self.get_url_data(url)
document = BeautifulSoup(request.content, 'html.parser')
Expand Down

0 comments on commit 55799d4

Please sign in to comment.