kittsville / Pyroon

An interactive visualisation library of Reddit's switch-a-roos
http://pyroon.sci1.uk/
MIT License
0 stars 0 forks source link

Include original Reddit response in JSON save #12

Open kittsville opened 7 years ago

kittsville commented 7 years ago

Currently only certain calculated properties are included in the resultant JSON. Given that many more properties may be desired later it would be useful if the entire original JSON response were saved. Using reddit.config.store_json_result = True the comment's JSON can be accessed via comment.json_dict. It could be wrapped in a meta object that specifies properties such as whether the data came from Reddit or archived in the PushShift API.

kittsville commented 7 years ago

As per this PRAW issue this method is no longer possible. As such I'll implement a helper that pulls each property out and makes a dict.