dgunning / edgartools

Python library for working with SEC Edgar
MIT License
345 stars 74 forks source link

Feature request: Item text parsing support for 10-K/Q #16

Closed davelacy closed 8 months ago

davelacy commented 8 months ago

First, excellent library. Well done! 👏 Thanks for creating this....

I'm curious to know if you plan to add text parsing support for 10-Ks and 10-Qs and other filings, much like you provided for 8-Ks?

Like the following:

Image

On a side note, is there an easy way to convert the results above to JSON?

Cheers!

dgunning commented 8 months ago

Thanks for the feedback, I work hard at improving it.

I started doing a general way to split 10-Ks into items just like 8-Ks, but stopped to re-evaluate the approach. There is a better way to do it and I think I can get this coded soon

For the json output you can probably do this

eightk = adobe_8K.obj()
item_json = [{'Item': item.item_num, 'Text': item.text} for item in eightk.items]
print(item_json)
davelacy commented 8 months ago

Excellent! Thanks, I'll give that a go and I look forward to future features 🚀