Skip to content

Conversation

hexnom4d
Copy link

Solving some problems with csv exports.

Solving some problems with csv exports.

with open("timeline.csv", 'wb') as csvfile:
w=unicodecsv.writer(csvfile, encoding='utf-8')
headers = ["timestamp", "timestamp_type", "path", "sha0"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
headers = ["timestamp", "timestamp_type", "path", "sha0"]
headers = ["timestamp", "timestamp_type", "path", "sha1"]

??

@williballenthin
Copy link
Owner

would you please explain the problems that you're looking to solve with this PR?

for example, i see that the changes tweak the output behavior to emit results to hardcoded file names rather than stdout. why?

@hexnom4d
Copy link
Author

Of course, in this link a user commented an error when trying to perform the parse (https://gist.github.com/williballenthin/ee512eacb672320f2df5), the problem was in the csvwriter declaration since when adding information to the file we obtained " TypeError: write() argument must be str, not bytes"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants