1

I ran the following command:

import edgar
import pandas as pd
edgar.download_index('/Users/myusername/Desktop/Desktop', 2010,skip_all_present_except_last=False)

It's throwing the following error asking for user_agent. Please clarify where can I get that useragent and guide if I am getting wrong on anything else? The error message is:

TypeError                                 Traceback (most recent call last)
<ipython-input-7-95d304376aa1> in <module>
      1 import edgar
      2 import pandas as pd
----> 3 edgar.download_index('/Users/myusername/Desktop/Desktop', 2010,skip_all_present_except_last=False)

TypeError: download_index() missing 1 required positional argument: 'user_agent'
ARNON
  • 1,097
  • 1
  • 15
  • 33
Thayyib PV
  • 11
  • 2

1 Answers1

0

According to the package documentation, there is a user_agent parameter. This parameter is mandatory. The given example is "MyCompany edward@mycompany.com"

Try:

edgar.download_index('/Users/myusername/Desktop/Desktop', 2010, "your_name your@email.address", skip_all_present_except_last=False)
mozway
  • 194,879
  • 13
  • 39
  • 75