dgunning / edgartools

Python library for working with SEC Edgar
MIT License
324 stars 70 forks source link

get_facts_for_namespace returns AttributeError #33

Closed ilias-ant closed 4 months ago

ilias-ant commented 4 months ago

Problem

Per README documentation:

company = Company("SNOW")
company_facts = company.get_facts_for_namespace()

is expected to work - however get_facts_for_namespace returns an AttributeError.

Minimum Reproducible Example

# e.g. tested it in Python 3.12.2
pip install edgartools==2.9.0

and then:

from edgar import *

set_identity("Ilias Antonopoulos foobar@gmail.com")  # enter valid email here
company = Company("SNOW")
company_facts = company.get_facts_for_namespace()

Screenshot

image

p.s. happy to assist with its resolution if it's source code issue and not simply a documentation one :)

dgunning commented 4 months ago

Thanks a lot for this. I fixed the documentation to company.get_facts()