【发布时间】:2021-11-22 15:21:33
【问题描述】:
我正在将 Python 与 Jupyter Notebook 一起使用。 该程序会下载许多 pdf 文件并在其他机器上运行,但是将其放在另一台装有 Windows Server 2016 Standard 的机器上时会显示错误。
导致错误的函数是:
def download_doc(pasta_pdf,base_links):
os.chdir(pasta_pdf)
for link in base_links['Link_Download_Regulamento']:
if link != None:
wget.download(link)
else:
continue
download_doc(pasta_origem,df_regulamentos_novos)
错误打印: enter image description here
感谢您的帮助。
【问题讨论】:
-
那么错误很明显:您没有经过身份验证。
-
我已通过身份验证,只有 10 个以上的文档出现错误。
标签: python pandas dataframe pdf wget