Skip to content

Instantly share code, notes, and snippets.

Created Nov 3, 2017
What would you like to do?
import urllib.request
url = ""
savename = "test.png"
memory = urllib.request.urlopen(url).read();
# w・・・書き込み
# b・・・バイナリ
# wbとはバイナリ書き込みを意味する
with open(savename, mode="wb") as f:
print("save complete")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment