Giter Club home page Giter Club logo

Comments (6)

manusimidt avatar manusimidt commented on May 26, 2024

Please note that py-xbrl only parses XBRL Documents. The files you provided are just regular HTML files and do not follow the XBRL Standard.
You can check if a file follows the iXBRL Standard either manually by looking at the Index file of the submission or programmatically i.e via the Structured Disclosure RSS Feeds.

The reason why the parser is crashing is that the SEC appends a file header to these documents, which can't be processed by the XML Parsing libary py-xbrl uses.
image

from py-xbrl.

manusimidt avatar manusimidt commented on May 26, 2024

However, perhaps a better error message could be issued, indicating that you should check whether the given file is really an XBRL file 🤔.

from py-xbrl.

mrx23dot avatar mrx23dot commented on May 26, 2024

SEC told me it wasn't mandatory for small companies to include inline xbrl in the past, but it will be from June 15, 2021.
Which means this lib won't cover every historical cases, and an html greper is also required.

Yeah a simple error msg would be nice that this file doesn't have inline xbrl. Then we can fall back to html greper.

from py-xbrl.

manusimidt avatar manusimidt commented on May 26, 2024

Not exactly. Since 2009 it is mandatory for every company (with assets over 10 Mio USD) to publish the 10-K and 10-Q in XBRL.
In 2019 the SEC began to slowly transition from regular XBRL to inline XBRL (iXBRL).

So yes, there are currently some small companies that still don't file inlineXBRL files (html), but they usually append a seperate XBRL Instance Document (xml) to their submission.
This libary can parse both XBRL and inline XBRL documents.

So instead of the original html filing document:
https://www.sec.gov/Archives/edgar/data/1641631/000149315221014050/form10-k.htm
use the XBRL instance document that was submitted with the filing:
https://www.sec.gov/Archives/edgar/data/1641631/000149315221014050/xair-20210331.xml

from py-xbrl.

mrx23dot avatar mrx23dot commented on May 26, 2024

What about this 10-K (2021-05-26)?
https://www.sec.gov/Archives/edgar/data/0000017313/000001731321000075/0000017313-21-000075-index.htm

It doesn't have any xml among filling files, neither inline xbrl, only plain html.

from py-xbrl.

manusimidt avatar manusimidt commented on May 26, 2024

Correct, this submission does not contain any XBRL tagging.
Maybe there is an exception rule for this company that they do not have to file in iXBRL.
You can find the original legislation regarding which company has to file in XBRL in RIN 3235-AJ71 page 43 and following.

from py-xbrl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.