-
Notifications
You must be signed in to change notification settings - Fork 17
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. |
Hey @john-friedman, I was running my code in Colab and found that |
As I try to extract item 1A, I have noticed that whenever a text of "Item *" is encountered, the next item is considered to have started [I have attached an image: The item 1A that is extracted stops at the word "See" in this context.]. This is what my list looks like:
CODE:
|
Strange, I thought I fixed that bug last month. Will look into it, thanks |
Should be fixed now. Sorry it took so long - setting up a lot of other stuff! On that note: I probably introduced a lot of new bugs. Unavoidable - switching to a new parsing system that will allow the package to parse any type of attachment - e.g. xml html pdf txt etc. Hoping they are minor, but if they are not, let me know and I will make them a priority. |
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: