Morningstar fund scraper
Project description
Morningstar Fund Scraper
Morningstar Fund Scraper is a versatile Python package designed to extract financial fund data directly from the Morningstar website. It simplifies the process of accessing up-to-date fund information for financial analysis and research.
Installation
Install the package effortlessly using pip:
pip install morningstar-fund-scraper
Usage
To begin, locate your desired fund on the Morningstar website. For instance, navigate to Morningstar Fund Snapshot and note the fund ID.
In this example, the fund ID is F00000PYZ6. This ID will be used to fetch data for the specified fund.
from morningstar_fund_scraper import Fund
# Initialize the Fund object with an optional perfid parameter
fund = Fund(perfid="F00000PYZ6")
# Get the latest Net Asset Value (NAV) data for the fund
nav_data = fund.get_nav()
print(nav_data)
Example Output
The get_nav() method returns a dictionary containing the fund name, NAV, currency, and date:
{'fund': 'Länsförsäkringar Global Index', 'nav': '452,35', 'currency': 'SEK', 'date': '2024-04-29'}
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
Built Distribution
Hashes for morningstar_fund_scraper-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc958cf9de0510616fe78d0e4636637a5d50306344c92fd8e52e0906eb5f6532 |
|
MD5 | 2908bbef2ea7e2df47083989ebc9e8ac |
|
BLAKE2b-256 | f1803d716674d11a0a85ba95b00343e45eeb46334edd68ca7fe770062bdd1075 |
Hashes for morningstar_fund_scraper-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b8cf817fa823332bfa21726c882d2a548fe0c67db6d653ff605b8b41211d329 |
|
MD5 | 9950bcb4f946d248e7816d5a34fd2be5 |
|
BLAKE2b-256 | 000504ea1819c10c500f6db163fde9f493d915147b9c410fe68c9005392683bb |