Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 27, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/46eebd4762ffbc42458ed98545e9bc10 to your computer and use it in GitHub Desktop.
Save parzibyte/46eebd4762ffbc42458ed98545e9bc10 to your computer and use it in GitHub Desktop.
import requests
url_imagen = "https://blog.golang.org/gopher/gopher.png" # El link de la imagen
nombre_local_imagen = "go.png" # 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