Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想抓取PDF 链接第 7 页中的数据:ftp: //ftp.publicdebt.treas.gov/dfi/tfmb/dfifd0717.pdf并移至数据框,然后移至 CSV。
你能帮忙吗,我还没有写任何脚本,因为我是新手。
下载 py2PDF 模块 PyPDF2.PdfFileReader() 并使用它将数据从 PDF 提取到字符串。然后使用 csv 模块(内置)中的 csv.writer() 将其写入 csv。你必须阅读更多关于它们的信息