Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: output to csv #3

Closed
ppival opened this issue Oct 27, 2017 · 3 comments
Closed

Feature Request: output to csv #3

ppival opened this issue Oct 27, 2017 · 3 comments
Assignees

Comments

@ppival
Copy link

ppival commented Oct 27, 2017

Would it be possible to offer the user a choice of outputting to csv in addition to tsv?

@felixlohmeier
Copy link
Member

felixlohmeier commented Oct 27, 2017

Hi Paul, Yes, of course. I am going to refactor the whole openrefine-batch tool next month (November 2017) in python and will then add more options (export to all formats openrefine currently supports, including templating). The export format is currently hard-coded.

@felixlohmeier
Copy link
Member

No one wants to wait... I did a quick update to the existing shell-script :-).

Please download and test the new version to a blank directory:
wget https://github.com/felixlohmeier/openrefine-batch/raw/master/openrefine-batch.sh && chmod +x openrefine-batch.sh

You can now specify csv as export format with additional option -e csv

example:

./openrefine-batch.sh \
-a examples/powerhouse-museum/input/ \
-b examples/powerhouse-museum/config/ \
-c examples/powerhouse-museum/output/ \
-e csv \
-f tsv \
-i processQuotes=false \
-i guessCellValueTypes=true \
-RX

Please close the issue if it works for you.

@ppival
Copy link
Author

ppival commented Oct 31, 2017

Fantastic, thanks so much! Successfully output an xlsx to both csv and xlsx

@ppival ppival closed this as completed Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants