Skip to main content

Add your description here

Project description

pypi Downloads Downloads versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morningstar_fund_scraper-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

morningstar_fund_scraper-0.1.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file morningstar_fund_scraper-0.1.3.tar.gz.

File metadata

File hashes

Hashes for morningstar_fund_scraper-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8bea24116f74789e77a2e2f523c0f5a970971087a5dc209007f805f4bfdd054d
MD5 0d64e174a8c1bf3f59ae0661869edd34
BLAKE2b-256 4d448b73b7c2084a71eb6114bfc3743cac44eb259cc8679c408d82f2c0151b72

See more details on using hashes here.

File details

Details for the file morningstar_fund_scraper-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for morningstar_fund_scraper-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a22d9450848f3116e2428a4d9f50093740bb0c0aca3043effd7a11296b56ceda
MD5 c8c7167dc0b1651041c4605dc5573c1c
BLAKE2b-256 39c7fa4c1fadcd60130cf96757be34a473ee41f5ff6fdf837ba089b349c61f54

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