Skip to main content

morningstar-stmt

Morningstar Financial Statement Downloader

morningstar-stmt is a simple Python module for downloading financial statement from www.morningstar.com.

  • Current Version: v0.0.2
  • Version Released: 02/23/2020

Overview

morningstar-stmt depends on Selenium to simulate browser operations by following steps: (goto) ticker's page -> (click) statment tab -> (click) export excel to download financial statments.

Features:

  • Support account login.
  • Full stock symbol list.
  • Download financial statmenst in xls format.
  • Only support Chrome webdriver.

Installation

  • morningstar-stmt runs on Python >= 3.6.
  • The package depends on Selenium to work.
1. Install morningstar-stmt using pip:
$ pip install morningstar-stmt
2. Install Chrome webdriver and place it in /usr/bin or /usr/local/bin.

Usage Examples

1. Download financial statement for specific ticker

import morningstar_stmt as ms
browser = ms.MorningStarStmtBrowser()
browser.download_stmt('xnas', 'AAPL')
Login Morningstar account before download
browser.login('xxiiaaon', 'password')
browser.download_stmt('xnas', 'AAPL')
# market code xnas for NASDAQ and xnys for NYSE
Specify download directory and log level
browser = ms.MorningStarStmtBrowser(download_dir='/User/xxiiaaon/stmt', log_level=logging.Info)

2. Download financial statements with ticker list

import morningstar_stmt as ms
ms.download_stmt(['xnas,AAPL', 'xnax,AAPL')])
Use predefined list
import morningstar_stmt as ms
from morningstar_stmt import tickerlist as tl
ms.download_stmt(tl.all)
# other list like tl.xnas for NASDAQ and tl.xnys for NYSE
Login when download with ticker list
ms.download_all_stmt(ms.MorningstarAccount('xxiiaaon', 'password'), tickerlist.all)

Release files for morningstar-stmt 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for morningstar-stmt 0.0.2
File Size Uploaded
morningstar_stmt-0.0.2.tar.gz 23.3 kB Details

Release files / morningstar_stmt-0.0.2.tar.gz

Download URL morningstar_stmt-0.0.2.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
20adddeb971816fcdc394b5b902be8292f4eed455589aee537a6f2bf09c2973e
BLAKE2b-256 checksum
How to use checksums
b521b0e2252f0f8c74aa127370b28188328329c1aa67eff1708b30032c56b2c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page