python - Trying to download CSV file from Redmine using Requests -
i've gone through few similar questions , tried suggestions, haven't quite gotten answer. i'm trying download csv file of redmine forum using python.
if follow link below within browser (on network can access it), download csv file.
http://bugs.internal.com/projects/issues/issues.csv?utf8=%e2%9c%93&columns=all&description=1
and i'm looking same behavior python. here's i've tried far. think should printing whole csv file, prints blank.
import csv import requests csv_url = 'http://bugs.internal.com/projects/issues/issues.csv?utf8=%e2%9c%93&columns=all&description=1' requests.session() s: download = s.get(csv_url) decoded_content = download.content.decode('utf-8') cr = csv.reader(decoded_content.splitlines(), delimiter=',') my_list = list(cr) row in my_list: print(row)
does have pointers? think it's url, don't know start.