Dear Python community,
I am brand new to Python.
I would like to download all the files available on this Github link: professions-foi-candidats/documents/LG17/1 at master · regardscitoyens/professions-foi-candidats · GitHub .
Is it possible through python to do the download of all files and save them in my laptop?
From what I understood, if I want to download a file I should code:
import urllib urllib.urlretrieve ("https://github.com/regardscitoyens/professions-foi-candidats/blob/master/documents/LG17/1/LG17-1-1-BLATRIX-CONTAT-2-tour1-profession_foi.pdf", "mydirectory/myfile.pdf")
the issue in this case is that the files are in different links.