![]() ![]() Req = requests.get(ruta, auth=(username, password), headers=headers)Īnd with this code I'm getting the webpage, not the excel file, and I don't understan why, because if I access the url " ", with the correct authentication I download the file.ĭo you know a way of downloading that file with wget using the authentication? Or am I doing something wrong in the requests. I've tried several approaches, but none of them works: wget.download("", local_path, bar=None)īut I get a "403 FORBIDDEN" error. The problem comes when I want to download any of the files. I'm using the Office365-Rest-Python-Client as defined in the examples at and I have access to all the files/directories I need. When clicked, the link opens a window to choose the file name and a directory. I'm trying to download an Excel file from a SharePoint repository using a Python script. Im a novice trying to download a file from a link using the requests module of python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |