Skip to content

Instantly share code, notes, and snippets.

@umiphos
Created September 9, 2020 07:58
Show Gist options
  • Save umiphos/1da27b7381a88ad1b5ffc8ff886c00a4 to your computer and use it in GitHub Desktop.
Save umiphos/1da27b7381a88ad1b5ffc8ff886c00a4 to your computer and use it in GitHub Desktop.
Convierte cualquier string base64 que es archivo en un archivo en tu disco.
import base64
import sys
name = sys.argv[1]
content = base64.b64decode(sys.argv[2])
with open(name, "wb") as result:
result.write(content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment