-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"asyncio.run() cannot be called from a running event loop" #23
Comments
You can pass your ciklist directly into the downloader.
Not sure whether the async option is coming from your first code block or second. If it's the second - downloader is already async and meant to work right out of the box which is why the error would occur. if it's the first - not sure why, would love to know if you're using jupyter notebooks / colab. |
I added a blocked that solved the error:
I have a question: Does 'filing' not work when the file is .htm? I have tried the following:
I get a 'document' error. I am not able to figure out what I am doing wrong here. |
Hi @debalee101. Please share what you are running your code in. Also nice catch! What causes the error is 10-K/A files being mixed in with your 10-Ks. This is because the downloader by default downloads root forms. Try emptying your directory and running the downloader selecting only file_type = 10-K. (Works on my machine) Note: that the code's behavior is annoying and I will be making it simpler in future versions, so this is very helpful. |
CIK.xlsx
I am trying to download 10Ks from a list of CIKs [Sample list attached]. I am using the following code:
I have also tried:
Or is it a good idea to download all available 10Ks within the date range, and then filter by the list of CIKs?
The text was updated successfully, but these errors were encountered: