-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha02_download.py
42 lines (34 loc) · 971 Bytes
/
a02_download.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#%%
from ap.classes import Download_per_date
from ap.tools import *
DB = 'Analysis'
INIT = 'init'
START_DATE = '20190701'
END_DATE = '20191231'
TB1 = 'a02_30017'
PREFIX1 = '30017'
QUERY_STR_PARAMS1 = {
'name': 'fileDown',
'filetype': 'xls',
'url': 'MKD/04/0404/04040400/mkd04040400',
'stctype': 'ALL',
'var_invr_cd': '1000',
'schdate': '',
'etctype': 'ST',
'pagePath': '/contents/MKD/04/0404/04040400/MKD04040400.jsp'
}
TB2 = 'a02_81004'
PREFIX2 = '81004'
QUERY_STR_PARAMS2 = {
'name': 'fileDown',
'filetype': 'xls',
'url': 'MKD/13/1302/13020101/mkd13020101',
'market_gubun': 'ALL',
'sect_tp_cd': 'ALL',
'schdate': '',
'pagePath': '/contents/MKD/13/1302/13020101/MKD13020101.jsp',
}
a30017 = Download_per_date(DB, INIT, TB1, PREFIX1, QUERY_STR_PARAMS1)
a81004 = Download_per_date(DB, INIT, TB2, PREFIX2, QUERY_STR_PARAMS2)
a30017.download(START_DATE, END_DATE)
a81004.download(START_DATE, END_DATE)