separate comment and post data structures
This allows for a flat data structure, benefical to data analysis
This commit is contained in:
@@ -93,7 +93,6 @@ class RedditAPI:
|
||||
source=self.source_name)
|
||||
post.subreddit = post_data['subreddit']
|
||||
post.upvotes = post_data['ups']
|
||||
post.comments = self._get_post_comments(post.id)
|
||||
|
||||
posts.append(post)
|
||||
return posts
|
||||
|
||||
Reference in New Issue
Block a user