📜  对文本文件的扭曲请求 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.991000             🧑  作者: Mango

代码示例1
import requests

files = {'f': ('1.pdf', open('1.pdf', 'rb'))}
response = requests.post("https://pdftables.com/api?&format=xlsx-single",files=files)
response.raise_for_status() # ensure we notice bad responses
file = open("out.xls", "w")
file.write(response)
file.close()