Towards Data Science Article to Markdown Blog converter

FREEMIUM
By pierpaolo28 | Updated לפני חודשיים | Education
Health Check

N/A

Back to All Tutorials (1)

Markdown File Download from API Response in 2 lines of Python code

response = requests.request("GET", url, headers=headers, params=querystring)

with open(response.headers['Content-Disposition'].split("filename=")[1], 'w', encoding='utf-8') as f:
    print(response.text, file=f)