The purpose of this project was to practice using APIs to scrape data from a website. The website Reddit was chosen because it is one of the visited websites on the internet. Data from the subreddit /r/politics was scrapped using the python library Praw. This subreddit was chosen due to it's active userbase. Analysis included determining top posts for this subreddit and understanding what factors contributed to their ranking beyond most upvotes and comments.
Additional goals for the project included:
Finding the top posts by score/upvotes
Determining if a high score correlates with a high number of comments
Discover the popular words used in all post titles
Semantics analysis of posts and determine if they are negative, positive, or neutral?
A heatmap that was ran through Seaborn showed there was a very positive correlation between the number of comments and the score of a posts (0.89).
Word frequency showed that Biden and Trump were the most popular key words, followed by GOP.
The majority of posts in /r/politics were found be neutral, followed by negative.