justetf-scraping icon indicating copy to clipboard operation
justetf-scraping copied to clipboard

Scraping country allocation and sectors?

Open daniele96l opened this issue 10 months ago • 1 comments

Hello guys is there any way to extract the country allocation and sectors?

daniele96l avatar Feb 08 '25 08:02 daniele96l

Hi @daniele96l,

country is already built in, just use alpha-2 code:

import justetf_scraping

justetf_scraping.load_overview(country="GB")

... 82 rows × 42 columns

or the country name:

justetf_scraping.load_overview(country="England")

... 82 rows × 42 columns

Sectors aren't yet built in. You'll have to adjust it in get_etf_params in justetf_scraping/oveview.py file. Add etf_params += "&sector=<sector>", e.g. etf_params += "&sector=Technology" at the end of the function to achieve this.

druzsan avatar Mar 19 '25 16:03 druzsan