Towards Data Science Article to Markdown Blog converter

ÜCRETSİZ PREMIUM
Taraf pierpaolo28 | Güncelleyen 2 months ago | Education
Health Check

N/A

Tüm Eğitimlere Dön (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)