palewire / django-calaccess-campaign-browser

A Django app to refine, review and republish campaign finance data drawn from the California Secretary of State’s CAL-ACCESS database
http://django-calaccess-campaign-browser.californiacivicdata.org
MIT License
17 stars 12 forks source link

Wireframe what a flat page offering bulk CSVs downloads could look like #170

Open palewire opened 9 years ago

palewire commented 9 years ago

Sites we have in mind are http://electionmoney.org/ and http://data.influenceexplorer.com/bulk/

rkiddy commented 9 years ago

Perhaps the export could be directly to a xls file, instead of to a csv. Most people are going to put the data into a spreadsheet anyway.

aboutaaron commented 9 years ago

Well, we have a lot of direct support for CSV already in these projects so I'm inclined to support CSV exports. That said, there's no reason why we couldn't implement XLS as well. Excel will open CSVs too so it shouldn't be too much of an issue unless .xls supports a feature we can't currently provide with our CSVs.

aboutaaron commented 9 years ago

It's worth noting that CSV exporting for the Expenditure and Contribution models just landed in PR #175. It should be fairly trivial to write the view and use Django's StreamingHTTPResponse module to trigger the download,