I am a complete novice in python and I have already searched several entries in stackoverflow to help me but I am still struggling. I feel that this should be very easy to do. Your help is greatly appreciated.
I have the following script: https://github.com/openxc/openxc-data-tools/blob/master/tracecsv.py
My goal is to run it on a python shell on window xp to convert Json file like (http://openxcplatform.com.s3.amazonaws.com/traces/nyc/downtown-crosstown.json) in a format that can be saved as csv.
So far, when I run the following code on my python shell (after changing the directory to where my files are located) I get an error and I am not able to have the output csv I am expected:
Here are what I enter in the command shell and the error:
python tracecsv.py downtown-crosstown.json output_file_name
SyntaxError: invalid syntax
tracecsv.py downtown-crosstown.json output_file_name
SyntaxError: invalid syntax
My understanding is that tracecsv.py read the script saved in my specified directory and the next two string specify the input file to be used in the code (as sys.argv1 and sys.argv2). I am expecting a csv file to be saved in my specify directory with my json file converted in excel structure and ready for analysis. Thank you!