Arelle Webserver - How to extract the income statement from an XBRL filing?

前端 未结 2 636
悲&欢浪女
悲&欢浪女 2021-02-04 21:43

I am trying to extract financial statement information based on type of the statement.

Let me explain to you in a little more details.

I want to extract the inco

2条回答
  •  隐瞒了意图╮
    2021-02-04 22:26

    Fortunately, it is not that difficult to extract financial statements. Here is how I was able to extract income statement info:

    1. Use arelle web server to get the complete fact table as shown below: http://localhost:8080/rest/xbrl/view?file=c:/Python/SEC-EDGAR/sec/2017/01/0001530425-0001477932-17-000505-xbrl.zip&view=factTable&media=xml

    Replace the file="" parameter with your own path. You can also substitute url for file parameter

    1. Once you have xml fact table in xml format, extract role nodes where for income statement, you can look for "StatementsOfOperations". Even though there are a few variations for income statement role id, they are not that many.

    Screenshot

提交回复
热议问题