Scraping the justETF
MIT License
Scrape the justETF.
To use justETF scraping package in your project, install the actual version from GitHub:
pip install git+https://github.com/druzsan/justetf-scraping.git
If you are going to play notebooks through, use the following installation:
pip install justetf-scraping[all]@git+https://github.com/druzsan/justetf-scraping.git
Load overviews for all available (over 3300 at the moment) ETFs (requires a request for all ETF type: long-only, active, short & leveraged):
import justetf_scraping
df = justetf_scraping.load_overview()
df
Further enrich the data with additional information (asset class, region, exchanges and instrument, it requires further requests):
df = justetf_scraping.load_overview(enrich=True)
Load long-only ETFs (only requires one single request):
df = justetf_scraping.load_overview(strategy="epg-longOnly")
Load MSCI World ETFs:
df = justetf_scraping.load_overview(strategy="epg-longOnly", index="MSCI World")
Load the whole history of a chosen ETF by its ISIN:
df = justetf_scraping.load_chart("IE00B0M62Q58")
df
Compare
df = justetf_scraping.compare_charts(
{
"IE00B0M62Q58": justetf_scraping.load_chart("IE00B0M62Q58"),
"IE00B0M63177": justetf_scraping.load_chart("IE00B0M63177"),
},
input_value="quote_with_dividends"
)
df
For further exploration examples, see Jupyter Notebooks
To setup locally cloned project, first install Poetry:
pip install poetry
In the local project folder, install all dependencies and extras:
poetry install --all-extras
Activate local Poetry environment:
poetry shell
Setup pre-commit hooks:
pre-commit install
This project was inspired by this Stack Overflow question.