📜  从 url python 代码示例下载 pdf

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

代码示例2
import requests
url='https://pdfs.semanticscholar.org/c029/baf196f33050ceea9ecbf90f054fd5654277.pdf'
r = requests.get(url, stream=True)

with open('myfile.pdf', 'wb') as f:
f.write(r.content)