Published
- 1 min read
python download file from url
The solution for this is noted below
python download file from url
Solution
import requests
url = 'https://www.facebook.com/favicon.ico'
r = requests.get(url, allow_redirects=True)
open('facebook.ico', 'wb').write(r.content)
Try other methods by searching on the site. That is if this doesn’t work