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: 재무제표 추출 성능 향상
Usage
Dart API Key 설정
- OPEN DART API 신청
- 환경 변수 DART_API_KEY 설정 또는 패키지 사용전 아래와 같이 설정
Quick Starts
import dart_fss as dart
# Open DART API KEY 설정
api_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
dart.set_api_key(api_key=api_key)
# DART 에 공시된 회사 리스트 불러오기
corp_list = dart.get_corp_list()
# 삼성전자 검색
samsung = corp_list.find_by_corp_name('삼성전자', exactly=True)[0]
# 2012년부터 연간 연결재무제표 불러오기
fs = samsung.extract_fs(bgn_de='20120101')
# 재무제표 검색 결과를 엑셀파일로 저장 ( 기본저장위치: 실행폴더/fsdata )
fs.save()
주의사항
- Open DART 및 DART 홈페이지의 경우 분당 100회 이상 요청시 서비스가 제한될 수 있음
- 관련 공지사항
License
This project is licensed under the MIT License
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.3.0a0.tar.gz
(57.3 kB
view hashes)
Built Distribution
dart_fss-0.3.0a0-py3-none-any.whl
(63.0 kB
view hashes)
Close
Hashes for dart_fss-0.3.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f94c13480ca98034bc9e39969939070bf582fca64cbe7bc23c2060d4e54bf695 |
|
MD5 | a7cc07e5a58e42a8ff90268cf19a064e |
|
BLAKE2b-256 | b330894d380e130187afdcce0c6da1d0a3121f7568cf831ad4789a53b27aecc1 |