import requests url = 'https://www.baidu.com/img/bd_logo1.png'
r = requests.get(url=url) with open('bd_logo1.png', 'wb') as f:
f.write(r.content)
print('OK')
import requests url = 'https://www.baidu.com/img/bd_logo1.png'
r = requests.get(url=url) with open('bd_logo1.png', 'wb') as f:
f.write(r.content)
print('OK')