You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import logging
from xbrl.cache import HttpCache
from xbrl.instance import XbrlParser, XbrlInstance
# just to see which files are downloaded
logging.basicConfig(level=logging.INFO)
cache: HttpCache = HttpCache('./cache')
parser = XbrlParser(cache)
schema_path = "./cache/aapl-20210925/aapl-20210925.html"
inst: XbrlInstance = parser.parse_instance(schema_path)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm struggling to get py-xbrl package working in offline mode. I'm using the code snippet from the documentation, but I keep getting the error...
AttributeError: 'NoneType' object has no attribute 'attrib'
which relates to line 453 in the file instance.py
schema_uri: str = schema_ref.attrib[XLINK_NS + 'href']
Code snippet I'm using...
Beta Was this translation helpful? Give feedback.
All reactions