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

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

Installation

pip install dart-fss

Plugins

Dependencies

Usage

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


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.3.tar.gz (52.8 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.2.3-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dart-fss-0.2.3.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.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for dart-fss-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e05a438c9d8653359a860c7d2f86fa3b0ee06a661adf8e103d25322fce61c5b8
MD5 3f298677d1352a0f73ceea1688a36f62
BLAKE2b-256 03619598aa63a2d2e0b4ede197e4e7c88e0608cf2f014930f15e2fa219548979

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dart_fss-0.2.3-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.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for dart_fss-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b028564431e4b83582a99a181c0b01bcb60ec9bca651a9a3222e0ce293a013a
MD5 ab3e8844b8f24a1d83e9b95140ff50e4
BLAKE2b-256 da231c47840c61501c38497c86f0517cbe337631bc26be91f476f4b6291ed625

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