petercerno / good-morning

Simple Python module for downloading fundamental financial data from financials.morningstar.com.
Other
189 stars 82 forks source link

Morningstar has disabled API access #23

Open mikijov opened 3 years ago

mikijov commented 3 years ago

I have done some debugging, and I wanted to leave some notes to the community.

In short, I don't think that this API can be used any more.

The main breaking change is that the API now requires some cookies with session id, which are set interactively when you visit the web page in your browser. If you try to call the api without the session id, the URL will simply return no data (204).

Secondly, the ticker now is internal Morningstar ID, so you would have to find a mapping, e.g. AAPL = 0P000000GY.

If anyone has an idea how to work around the session id, I can help make the fixes. But until then I think the library is broken.