I am trying to download a zip file from a secure website, this is my code:
import urllib
username = "us"
password = "pass"
url = "https://ssl.isr.umich.edu/hrs/files2.php?versid=189"
testfile = urllib.FancyURLopener(username,password)
testfile.retrieve(url,"filetest1.pdf")
The errors include: syntax error, invalid syntax. Can someone help me out please. Thanks