Skip to main content

Web-scraping http://dart.fss.or.kr

Project description

Dart-Fss

PyPI PyPI - Python Version Build Status Coverage Codacy Badge

대한민국 금융감독원에서 운영하는 다트(DART) 사이트 크롤링 및 재무제표 추출을 위한 라이브러리

Features

  • Open DART의 오픈 API를 이용한 전자공시 조회
  • DART의 전자공시 정보를 이용한 재무제표 추출

Installation

pip install dart-fss

Plugins

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회 이상 요청시 서비스가 제한될 수 있음
  • 관련 공지사항: [FAQ]->[오픈API 이용한도는 어떻게 되나요?]

License

This project is licensed under the MIT License

Project details


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.12.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dart_fss-0.3.12-py3-none-any.whl (71.8 kB view details)

Uploaded Python 3

File details

Details for the file dart-fss-0.3.12.tar.gz.

File metadata

  • Download URL: dart-fss-0.3.12.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for dart-fss-0.3.12.tar.gz
Algorithm Hash digest
SHA256 eae683dc52e3cfeb9a3fa069efdcc05acc5148178b0251dbdf9287df49890115
MD5 f88c26a3ded3ce597a852769f6bb5515
BLAKE2b-256 ccb7f3e0ec76d97d36b4d334d925ffa8a0fd081923d924b55f1ce21b9a758ac6

See more details on using hashes here.

File details

Details for the file dart_fss-0.3.12-py3-none-any.whl.

File metadata

  • Download URL: dart_fss-0.3.12-py3-none-any.whl
  • Upload date:
  • Size: 71.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for dart_fss-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 6112eb339389a14d2668ba0a966d9937bb94aa0822b1fac3a9de2440feaec42e
MD5 591d6c4f9ab316a4a6ae3fb6519b17e9
BLAKE2b-256 b3cbe978515bf5e7c2f224b3c241e0e4d0383614edd33a6153f46483d4ea95c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page