Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 27, 2018 05:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/99784144d14d687eddf0669e7d5d01a2 to your computer and use it in GitHub Desktop.
Save parzibyte/99784144d14d687eddf0669e7d5d01a2 to your computer and use it in GitHub Desktop.
import requests
url_imagen = "https://golang.org/doc/gopher/appenginegophercolor.jpg" # El link de la imagen
nombre_local_imagen = "go.jpg" # El nombre con el que queremos guardarla
imagen = requests.get(url_imagen).content
with open(nombre_local_imagen, 'wb') as handler:
handler.write(imagen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment