jadchaar / sec-edgar-downloader

📈 Download filings from the SEC EDGAR database using Python
https://sec-edgar-downloader.readthedocs.io
MIT License
491 stars 137 forks source link

Issue with downloading 10-K #135

Open prodigy803 opened 9 months ago

prodigy803 commented 9 months ago

Getting the following bug in _utils.py in the function get_filing_urls_to_download:

208             # from the response payload in case it changes in the future

--> 209 query_size = search_query_results["query"]["size"] 210 start_index += query_size"

Its cause the structure of the query has changed and its saying that "TypeError: string indices must be integers". Before I hack something felt like running this by here to get some response.

jadchaar commented 9 months ago

hey @prodigy803 can you try updating the package to the latest version 5.0.x? If the issue still occurs, please do respond back with python version, example query that is causing this, and package version.