I tried using the below code but it is giving me 403 FORBIDDEN as the response
import time
import urllib.request
import pandas as pd
import requests
import json
def share_point_login():
print('called')
site=" url of the excel file"
username = "username"
password = "password"
response = requests.get(site, auth=(username, password))
print(response.text)
print(response.status_code)
share_point_login()
When I try downloading, I am getting a excel file with 403 FORBIDDEN
written in it.
the excel URL File
the same code is working for my friend in another laptop