KN
Size: a a a
KN
KN
AA
response = requests.get(url, params=payload, verify=False, stream=True)
if response.status_code == 200:
with open('static/img2.png', 'wb') as f:
f.write(response.content)
KN
AA
KN
import requests
import shutil
r = requests.get(settings.STATICMAP_URL.format(**data), stream=True)
if r.status_code == 200:
with open(path, 'wb') as f:
r.raw.decode_content = True
shutil.copyfileobj(r.raw, f)
К
KN
KN
import requests
import shutil
r = requests.get(settings.STATICMAP_URL.format(**data), stream=True)
if r.status_code == 200:
with open(path, 'wb') as f:
r.raw.decode_content = True
shutil.copyfileobj(r.raw, f)
YM
KN
KN
YM
YM
KN
AS
KN