Python snippet: download files

19 Sep 2022

import requests

url = "https://www.spacex.com/favicon.ico"
response = requests.get(url)
open("spacex.ico", "wb").write(response.content)

links

social