Skip to content

Commit

Permalink
rollback download
Browse files Browse the repository at this point in the history
  • Loading branch information
liante0904 committed Jul 16, 2024
1 parent b264097 commit cbf68aa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def LS_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
LIST_ARTICLE_URL = LS_detail(LIST_ARTICLE_URL, date)
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down Expand Up @@ -514,7 +514,7 @@ def KB_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
)
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down Expand Up @@ -875,7 +875,7 @@ def Samsung_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
)
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down Expand Up @@ -1164,7 +1164,7 @@ def Shinyoung_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
)
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down Expand Up @@ -1425,7 +1425,7 @@ def Miraeasset_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
)
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down Expand Up @@ -1533,7 +1533,7 @@ def Kiwoom_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
)
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down Expand Up @@ -2071,7 +2071,7 @@ def DAOL_parse(ARTICLE_BOARD_ORDER, TARGET_URL):
)
if sendMessageText:
nNewArticleCnt += 1 # 새로운 게시글 수
DownloadFile_wget(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
DownloadFile(URL = LIST_ARTICLE_URL, FILE_NAME = LIST_ARTICLE_TITLE +'.pdf')
if len(sendMessageText) >= 3500:
print("발송 게시물이 남았지만 최대 길이로 인해 중간 발송처리합니다.")
print(sendMessageText)
Expand Down

0 comments on commit cbf68aa

Please sign in to comment.