Web-scraping http://dart.fss.or.kr
Project description
Dart-Fss
한국 금융감독원에서 운영하는 Dart 시스템 크롤링을 위한 라이브러리
- Documentation: https://dart-fss.readthedocs.io
- Source code: https://github.com/josw123/dart-fss
Features
Installation
pip install dart-fss
Plugins
- Dart-Fss-Classifier: 재무제표 추출 성능 향상
Dependencies
Usage
Dart API Key 설정
- DART API 신청
- API Key 확인
- 환경 변수 DART_API_KEY 설정 또는 패키지 사용전 아래와 같이 설정
import dart_fss as dart
api_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
dart.dart_set_api_key(api_key=api_key)
오류 코드
- DartAPIError: DART API 에서 오류 메시지를 전송 받았을때 발생하는 오류
- NotFoundConsolidated: 연결재무제표가 없을때 발생하는 오류(해당사항이 없는 경우)
주의사항
- Dart-Fss 라이브러리는 오픈 API의 응답 방식 중 JSON 방식을 사용 중
- 현재 DART 오픈 API의 응답 방식이 JSON인 경우 오류 발생시 오류 메시지를 보내지 않음 (응답방식이 xml인 경우 올바르게 작동함)
XML 결과
<?xml version="1.0" encoding="utf-8"?>
<result>
<err_code>010</err_code>
<err_msg>미등록 인증키</err_msg>
<page_no>1</page_no>
<page_set>10</page_set>
<total_count>0</total_count>
<total_page>0</total_page>
</result>
JSON 결과
{"err_code":"000","err_msg":"정상","page_no":1,"page_set":10,"total_count":0,"total_page":0,"list":[]}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dart-fss-0.2.2.tar.gz
(52.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dart_fss-0.2.2-py3-none-any.whl
(42.9 kB
view details)
File details
Details for the file dart-fss-0.2.2.tar.gz.
File metadata
- Download URL: dart-fss-0.2.2.tar.gz
- Upload date:
- Size: 52.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b024d9f795239716ddd5689ac809ace7be2e488d6f1016b55953c6e2837ebc
|
|
| MD5 |
015cacfc1f2618c98170274d4a741365
|
|
| BLAKE2b-256 |
d01622ca598b842ec9e6382bd8e69dab820ba410245db4e5b8241970332d2e0b
|
File details
Details for the file dart_fss-0.2.2-py3-none-any.whl.
File metadata
- Download URL: dart_fss-0.2.2-py3-none-any.whl
- Upload date:
- Size: 42.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf1a4911855c05a976c518837c3e723e0c07238aaffa5899f87a2426f90b91e
|
|
| MD5 |
7be7ea53b503c7f1b281d07b6110e9a8
|
|
| BLAKE2b-256 |
239a849447b75de0d9122a12cf1f7ea3b31e5daeb87f6f21d836049aa11d742b
|