Skip to content

enhancement request due to some challenges #2

@MrRaghav

Description

@MrRaghav

Hello,
Thank you for this code. I have referred it to get CSVs of Books.json.gz from Amazon reviews.

However, I encountered following challenges --

1) failed due to missing fieldnames

The program failed due to missing fieldnames. I found that following field names - 'style', 'verified', 'image', 'vote' were not present. Chances are that they are specific to Book reviews but if we'll have a try catch option, the program will not fail.

Link: http://deepyeti.ucsd.edu/jianmo/amazon/categoryFiles/Books.json.gz

2) NameError: name 'false' is not defined

I encountered this and since my work is for educational purpose, I did a workaround of false = False from this link. I know this is not correct way but I added following lines:

false = False
true = True

before following sentence at line 58:

#count lines and read in field names on first pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions