import requests
a = requests.get('https://imgs.xkcd.com/comics/python.png')
with open('comic.txt', 'wb') as f:
    f.write(a.content)

03dc03420755317e070da25b5f5177e08e979455
<mask token>

<mask token>
with open('comic.txt', 'wb') as f:
    f.write(a.content)

<mask token>
a = requests.get('https://imgs.xkcd.com/comics/python.png')
with open('comic.txt', 'wb') as f:
    f.write(a.content)

import requests
a = requests.get('https://imgs.xkcd.com/comics/python.png')
with open('comic.txt', 'wb') as f:
    f.write(a.content)
