josw123 / dart-fss

한국 금융감독원에서 운영하는 다트(Dart) 시스템 크롤링을 위한 라이브러리
https://github.com/josw123/dart-fss
MIT License
326 stars 111 forks source link

사업보고서제출기한연장신고서에 의해 발생하는 오류 #64

Closed josw123 closed 3 years ago

josw123 commented 3 years ago

AttributeError Traceback (most recent call last)

in ----> 1 cc.extract_fs(bgn_de='20190101') ~/IdeaProjects/dart-fss/dart_fss/corp/corp.py in extract_fs(self, bgn_de, end_de, fs_tp, separate, report_tp, lang, separator, dataset) 231 232 """ --> 233 return extract(self.corp_code, bgn_de, end_de, fs_tp, separate, report_tp, lang, separator, dataset) ~/IdeaProjects/dart-fss/dart_fss/fs/extract.py in extract(corp_code, bgn_de, end_de, fs_tp, separate, report_tp, lang, separator, dataset) 1292 msg = 'Unexpected Error' 1293 e.args = (*e.args, msg, ) -> 1294 raise e 1295 finally: 1296 dart.utils.spinner.spinner_enable = True ~/IdeaProjects/dart-fss/dart_fss/fs/extract.py in extract(corp_code, bgn_de, end_de, fs_tp, separate, report_tp, lang, separator, dataset) 1249 report = reports.pop(0) 1250 if statements is None: -> 1251 statements = analyze_report(report=report, 1252 fs_tp=fs_tp, 1253 separate=separate, ~/IdeaProjects/dart-fss/dart_fss/fs/extract.py in analyze_report(report, fs_tp, separate, lang, separator, dataset) 1138 show_concept=True, separator=separator) 1139 else: -> 1140 fs_df = analyze_html(report, fs_tp=fs_tp, separate=separate, lang=lang) 1141 1142 return fs_df ~/IdeaProjects/dart-fss/dart_fss/fs/extract.py in analyze_html(report, fs_tp, lang, separate) 555 _, fs_table = report_find_all(report, query, fs_tp, separate) 556 --> 557 extract_results = extract_fs_table(fs_table=fs_table, fs_tp=fs_tp, separate=separate, lang=lang) 558 return extract_results 559 ~/IdeaProjects/dart-fss/dart_fss/fs/extract.py in extract_fs_table(fs_table, fs_tp, separate, lang) 459 def extract_fs_table(fs_table, fs_tp, separate: bool = False, lang: str = 'ko'): 460 results = OrderedDict() --> 461 for tp, table in fs_table.items(): 462 if tp in fs_tp: 463 if table['table']: AttributeError: ("'NoneType' object has no attribute 'items'", "An error occurred while fetching or analyzing {'rcp_no': '20210323000944', 'corp_code': '01183407', 'corp_name': '이십일스토어', 'stock_code': '270020', 'corp_cls': 'N', 'report_nm': '사업보고서제출기한연장신고서 (2020.12)', 'flr_nm': '이십일스토어', 'rcept_dt': '20210323', 'rm': ''}.")