manusimidt / py-xbrl

Python-based parser for parsing XBRL and iXBRL files
https://py-xbrl.readthedocs.io/en/latest/
GNU General Public License v3.0
111 stars 40 forks source link

Add schema_root option to parse_ixbrl. #88

Closed fhopecc closed 1 year ago

fhopecc commented 1 year ago

Some organizations(ie. TWSE) provide local ixbrls which schema path is not relative to instance path, so the parse_ixbrl function can not find the right path for the schema. Add a schema_root option to exactly specify the local scheme directory.

manusimidt commented 1 year ago

@fhopecc Just out of curiosity, do you know if there are any publicly available xbrl filings from TWSE listed companies? I always like to try different XBRL reports from different countries/regulators to make sure that py-xbrl can parse as many XBRL submissions as possible without errors. :)

fhopecc commented 1 year ago

Publicly availabel xbrl fillings from TWSE listed companies can be downloaded by the following URL: https://mops.twse.com.tw/mops/web/t203sb02 A zip contains a quarter's xbrl fillings of all listed companies.