我运行了以下命令:
import edgar
import pandas as pd
edgar.download_index('/Users/myusername/Desktop/Desktop', 2010,skip_all_present_except_last=False)它抛出以下请求user_agent的错误。请澄清,如果我在其他方面出错,我可以从哪里获得用户代理和指南?错误消息为:
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'发布于 2021-08-14 15:48:03
根据package documentation,有一个user_agent参数。此参数是必需的。给定的示例是"MyCompany edward@mycompany.com“。
尝试:
edgar.download_index('/Users/myusername/Desktop/Desktop', 2010, "your_name your@email.address", skip_all_present_except_last=False)https://stackoverflow.com/questions/68784474
复制相似问题