Last active
August 29, 2016 20:51
-
-
Save paveljasek/c7572edf95e8cb73aaac33ef21c13e60 to your computer and use it in GitHub Desktop.
Itemize shopping XML feed into CSV tabular format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xmlutils are required: https://github.com/knadh/xmlutils.py | |
# basically you need to install it on unix via pip command | |
pip install xmlutils | |
# xml2csv takes an xml file, reads tags that correspond to the desired element and output a csv file delimited by the parameter | |
# delimiter is changes from comma to semicolon as some items can have titles including commas | |
xml2csv --input sample.xml --output sample.csv --tag "item" --delimiter ";" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment