1url = 'https://codeload.github.com/fogleman/Minecraft/zip/master'
2
3# downloading with requests
4
5# import the requests library
6import requests
7
8
9# download the file contents in binary format
10r = requests.get(url)
11
12# open method to open a file on your system and write the contents
13with open("minemaster1.zip", "wb") as code:
14 code.write(r.content)
15
16
17# downloading with urllib
18
19# import the urllib library
20import urllib
21
22# Copy a network object to a local file
23urllib.urlretrieve(url, "minemaster.zip")
24