-
Notifications
You must be signed in to change notification settings - Fork 105
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 #26 from geun9716/master
날짜 지정 기능 추가 (Add Date Assignment feature)
- Loading branch information
Showing
8 changed files
with
97 additions
and
35 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
Binary file not shown.
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
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
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
from korea_news_crawler.articlecrawler import ArticleCrawler | ||
|
||
if __name__ == "__main__": | ||
Crawler = ArticleCrawler() | ||
# 정치, 경제, 생활문화, IT과학, 사회, 세계 카테고리 사용 가능 | ||
Crawler.set_category("IT과학", "경제", "생활문화", "IT과학", "사회", "세계") | ||
# 2017년 12월부터 2018년 1월까지 크롤링 시작 | ||
Crawler.set_date_range(2017, 12, 2018, 1) | ||
Crawler.set_category("IT과학", "세계") | ||
# 2017년 12월 (1일) 부터 2018년 1월 13일까지 크롤링 시작 YYYY-MM-DD의 형식으로 입력 | ||
Crawler.set_date_range('2017-12', '2018-01-13') | ||
Crawler.start() |
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[metadata] | ||
description-file = README.md | ||
description_file = README.md |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
from setuptools import setup | ||
|
||
# build package command: python setup.py bdist_wheel | ||
# release package command: twine upload dist/KoreaNewsCrawler-version-py3-none-any.whl | ||
# release package command: twine upload dist/KoreaNewsCrawler-${version}-py3-none-any.whl | ||
|
||
setup( | ||
name = 'KoreaNewsCrawler', | ||
version = '1.50', | ||
version = '1.51', | ||
description = 'Crawl the korean news', | ||
author = 'lumyjuwon', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/lumyjuwon/KoreaNewsCrawler', | ||
download_url = 'https://github.com/lumyjuwon/KoreaNewsCrawler/archive/1.50.tar.gz', | ||
download_url = 'https://github.com/lumyjuwon/KoreaNewsCrawler/archive/1.51.tar.gz', | ||
install_requires = ['requests', 'beautifulsoup4'], | ||
packages = ['korea_news_crawler'], | ||
keywords = ['crawl', 'KoreaNews', 'crawler'], | ||
|