Comments (3)
Any ideas before I do a big run? Cheers
from py-xbrl.
Hello @mrx23dot ,
i have looked into the filing you provided and was able to successfully extract the two facts tagged with "dei:EntityCommonStockSharesOutstanding". One concept has the member "CommonClassAMember" the other "CommonClassBMember".
This was the code i used:
cache: HttpCache = HttpCache('./cache')
xbrlParser = XbrlParser(cache)
inst: XbrlInstance = xbrlParser.parse_instance(
'https://www.sec.gov/Archives/edgar/data/0001751143/000121390021027034/f10q0321_atlastechnical.htm')
print(inst)
facts: list = []
for fact in inst.facts:
if fact.concept.name == 'EntityCommonStockSharesOutstanding':
facts.append(fact)
print(facts)
In this screenshot you can see how the parsed facts correspond with the iXBRL Viewer of the SEC.
You can use this code to print out the facts with their corresponding dimensions/members
for fact in facts:
print(f"{fact.concept.name}: {fact.value} ({fact.context.segments[0].member if len(fact.context.segments) > 0 else ''})")
Please let me know if that works for you :)
Greetings,
Manu
from py-xbrl.
Works great it was hidden away :D Thanks!
The structural filtering (like cover/balance/cashflow section) would be a great addition.
Currently I query for number of shares and it gives me back 4+ different results all over the doc and no way telling which one is front cover and which one is from textblob or subsidiary.
from py-xbrl.
Related Issues (20)
- Parsing Failures for Empty Fact Values and 'nil' Text in XBRL Documents HOT 2
- Support a New Taxonomy? HOT 1
- Parsing filings with empty imports HOT 3
- Issue with dateMonthDayYearEN function in Transformation __init__ file HOT 1
- xbrl.TaxonomyNotFound HOT 2
- parse_ixbrl does not close the file it opens HOT 4
- No support for embedded/inline schemas HOT 2
- Elements missing after parsing HOT 3
- maximum recursion depth exceeded in __instancecheck__ HOT 4
- Difference between pypi and github releases? HOT 2
- Infinite recursion loops with cyclic taxonomy imports. HOT 2
- Check differences between transformation registry version 4 and 5
- TaxonomyNotFound: The taxonomy with namespace http://xbrl.sec.gov/dei/2024 could not be found. Please check if it is imported in the schema file
- New taxonomy for 2024 HOT 2
- Index out of range HOT 1
- Add contextRef to Json parsing
- Add namespace to Concept
- Support for xbrldi:typedMember HOT 2
- Start getting 403 errors from sec.gov HOT 5
- Any way to link different facts together in a coherent way?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-xbrl.