You should use response.content in this case: with open('/tmp/metadata.pdf', 'wb') as f: f.write(response.content). From the document:.
確定! 回上一頁