Keep getting attribute error using Praw to scrape specific search term in subreddit
问题 I'm an extreme novice. My goal is to scrape reddit posts and comments from the subreddit r/Coronavirus by the searchterm "smokers". I keep getting "AttributeError: 'MoreComments' object has no attribute 'body'" referring to the "commentsDict["Body"].append(topLevelComments.body)" line. There are two other lines using the (topLevelComments.author, .score, and .body) that keep causing it to crash. When I comment out all of the lines with ".append(topLevelComments. )it returns: ValueError(