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)
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| morningstar_stmt-0.0.2.tar.gz | 23.3 kB | Without provenance | Details for morningstar_stmt-0.0.2.tar.gz |
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
|
Security for morningstar-stmt 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.