我正在尝试从https://www.fec.gov/data/browse-data/?tab=bulk-data下载 .zip 文件,特别是https://www.fec.gov/files/bulk-downloads/2020 /indiv20.zip。压缩后,文件大小为 2.7 GB。下载将在 10 秒内启动并完成。当我尝试解压缩该文件时,我收到以下错误消息。下载到我的本地计算机时,链接会以 .zip 文件形式下载并打开所需的数据。!python --versionPython 3.7.8!curl -O https://www.fec.gov/files/bulk-downloads/2020/indiv20.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 138 100 138 0 0 690 0 --:--:-- --:--:-- --:--:-- 690!unzip -a indiv20.zipArchive: indiv20.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of indiv20.zip or indiv20.zip.zip, and cannot find indiv20.zip.ZIP, period. import zipfilewith zipfile.ZipFile("indiv20.zip", 'r') as zip_ref: zip_ref.extractall()
添加回答
举报
0/150
提交
取消