I tried to download the excel file which is attached to jira issue type in python using requests am getting in the html format. please help me how to download the excel file which is attached to jira issue type and save it my local location. i tried like this it is saving it has html file. i need the original excel file which is attached to the jira issue.
r = requests.get("jiraurl", headers=headers, verify=False)
request = r.json()
excel_url = request['fields']['attachment'][0]['content'])
#output = when i run the above script am getting the url for the excel sheet were it is located,
so i tried like this after getting the excel url am doing requests.get again for the excel url
r1 = requests.get(excel_url, allow_redirects=True, verify=False)
open('file.xlsx', 'wb').write(r1.content)
when i open the file it is in the html malformed format. please help me how to download the original excel file from python from a jira issue type.
facing same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not very helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.