I am trying to download google sheet using belowcode. However it is not giving unexpected result by printing differennt characters into xls sheet. Any idea what could be wrong. Code:
url = 'google_docs_link'
user, password = 'user', 'pwd'
resp = requests.get(url, auth=(user, password))
print(resp)
with open('C:\\AAA\\exportdata.xls', "wb") as o:
o.write(resp.content)`
print(resp) is giving the output of <Response [200]>