Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장수창
/
COVID19_Information_Chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장수창
2020-06-17 02:26:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f026bbb832ab229d287a367c748c24ff34e2e1af
f026bbb8
1 parent
fd1fef7c
status to txt file
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
status.py
status.txt
status.py
View file @
f026bbb
...
...
@@ -3,7 +3,7 @@ from bs4 import BeautifulSoup
from
datetime
import
datetime
day_month
=
datetime
.
today
()
.
month
day_day
=
datetime
.
today
()
.
day
day_day
=
datetime
.
today
()
.
day
data
=
[]
url
=
'https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=
%
EC
%
BD
%94%
EB
%
A1
%9
C
%
EB
%82%98
+
%
ED
%98%84%
ED
%99%
A9'
...
...
@@ -19,7 +19,11 @@ datasets = datasets[1:]
datasets
=
datasets
[:
-
1
]
for
i
in
range
(
0
,
4
):
datasets
[
i
]
=
datasets
[
i
]
.
replace
(
" "
,
""
)
datasets
.
append
(
day_month
)
datasets
.
append
(
day_day
)
print
(
datasets
)
\ No newline at end of file
# insert into text file
date
=
f
"{day_month}월 {day_day}일"
f
=
open
(
"status.txt"
,
'w'
)
f
.
write
(
date
+
"
\n
"
)
for
i
in
datasets
:
f
.
write
(
i
+
"
\n
"
)
f
.
close
()
\ No newline at end of file
...
...
status.txt
0 → 100644
View file @
f026bbb
6월 17일
확진환자12,155
격리해제10,760
검사진행22,632
사망자278
Please
register
or
login
to post a comment