try:
    urllib.request.urlretrieve(link, file_name)
except:
    print('could not download %s' % link)
else:
    continue
if __name__ == '__main__':
    main()
Equivalent of wget in Python to download website and resources