Project

General

Profile

Export issues as csv file from python

Added by patrice renaud almost 12 years ago

Hi,

I used to export Redmine issues as csv file by using csv button of the page, and it works well.
I want to do the same from a Python script file.
It's unsuccessful:

import request
r=requests.get('https://monsite.fr/issues.csv')

r.status_code is : 406 406 - Not Acceptable
r.content is ' '
I have tried with other python packages : urllib, urllib2, .., but it's the same status code

Something specific to Redmine ?

it works indeed to read . csv file from another site, for instance:
http://www.nauathletics.com/information/NAU_Sports_Schedules.csv
Any idea ?

Thanks a lot