|
|
|
@ -17,7 +17,11 @@ class RedditComments:
|
|
|
|
return username + " " + date
|
|
|
|
return username + " " + date
|
|
|
|
|
|
|
|
|
|
|
|
def getText(self, commentObj):
|
|
|
|
def getText(self, commentObj):
|
|
|
|
return commentObj.find("p").text
|
|
|
|
p = commentObj.find("p")
|
|
|
|
|
|
|
|
if p is not None:
|
|
|
|
|
|
|
|
return p.text
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
|
|
def getComments(self):
|
|
|
|
def getComments(self):
|
|
|
|
for co in self.commentObjects:
|
|
|
|
for co in self.commentObjects:
|
|
|
|
|