Web-scraping https://dart.fss.or.kr
Project description
Dart-Fss
대한민국 금융감독원에서 운영하는 다트(DART) 사이트 크롤링 및 재무제표 추출을 위한 라이브러리
- Source code: https://github.com/josw123/dart-fss
Features
Installation
- Open DART 지원 / 신규 Open DART API Key 필요
- Python 3.7 이상 지원
- Documentation: https://dart-fss.readthedocs.io/
pip install -U dart-fss
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 홈페이지의 경우 분당 1000회 이상 요청시 서비스가 제한될 수 있음
- 관련 공지사항: [FAQ]->[오픈API 이용한도는 어떻게 되나요?]
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.4.10.tar.gz
(90.6 kB
view details)
Built Distribution
dart_fss-0.4.10-py3-none-any.whl
(145.7 kB
view details)
File details
Details for the file dart-fss-0.4.10.tar.gz
.
File metadata
- Download URL: dart-fss-0.4.10.tar.gz
- Upload date:
- Size: 90.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d69def0365ab0e4befcf9a1b36a1e3d8849cb6ce8ffbd1b160632dc50ae5490a |
|
MD5 | 700786176e618d8108277b4f22ed9a54 |
|
BLAKE2b-256 | 6323f6c0e5ca8fd874736a28870b40c19be6cdcadf095b5aace17d8030851cf3 |
File details
Details for the file dart_fss-0.4.10-py3-none-any.whl
.
File metadata
- Download URL: dart_fss-0.4.10-py3-none-any.whl
- Upload date:
- Size: 145.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de8c726947001d8e0d29783199a4de74e3350f1d8012d9b94ef0a70b8ade9dc7 |
|
MD5 | 991ab2ba694793c55514f0c00c333cc4 |
|
BLAKE2b-256 | 8a4020df8c709d63bf8280972bc427db3813279e0e247dd810225ea7f1916650 |