The Gay Interest:
As a gay man, I am personally interested in the mindset and goals of the gay community. And I want to bring awareness to and understanding of this often-discriminated minority group. A better understanding of those who are different, will help bridge the gaps in our differences. Therefore, we must “seek first to understand and then to be understood.” (Stephen Covey)
There are also many non-altruistic goals in this analysis. Just being honest here. Gay men often have a large disposable incomes, they often don’t have children. Knowledge of the gay man’s interests can be beneficial for companies looking to tap into new revenue sources.
But wait, there's more! The data science nerd in me immediately noticed Queerty’s article recommendation system and I wanted to explore how it worked. This could ultimately help the website increase article readership and involvement. Double whammy!
This motivated me to scrape data from the popular gay website www.queerty.com, to begin the process of understanding. Get ready to see the unique merger of gays and data science.
Gay-thering Data from Queerty.com:
Queerty.com is a news website free of an agenda (except the gay one). Below you can see the basic layout of the website. There are 4 different categories: "Life", "Entertainment", "Politics" and "Goods" (goods referring to hot guys) highlighted in the top left red box. Using Selenium with python I would crawl through every article in the webpage.
- Category: String (“life”, “politics”, “entertainment”, “goods”)
- Author: String
- Title: String
- Number of Comments: Float
- Tags: String separated with “|”
- Article URL: String
- Recommended URLs: String separated with “|”
- Time: String -> converted to datetime
- Number of Tags: Float
- Title Length: Float
In total, I scraped 12,079 articles with 6 features directly from the Queery website and took several days to collect. To quote a colleague, "Selenium is sooooo slow!"
Gay Men are Talking Life and Politics:
An exploratory data analysis can often provide insightful information. The obvious main feature that gives information on insight in to the mind of the gay man is the number of comments an article receives.
After a logarithmic transform, we see a fairly normal distribution in the number of comments as shown on the right. Of course we want to explore how the comments are distributed among the different categories, shown below.
The following bar and box plot clearly indicate the main interests for the gay man are politics and life issues. Way to stay informed, ladies! Personally, this made me very happy. Now we need a section on gay men in science and math....
This section provides interesting information about the Queerty website and hopefully can be used to increase readership and awareness of gay issues. The top 20 most popular authors are shown on the bar plot to the right. Queerty, keep Matt Slusarenko as an author, because he is killing it with getting readers talking.
I also examined the cumulative sum on the number of comments since 2006. The interesting aspect here is the slope of the curve to the left.
One can see a dramatic increase in the slope of the curve since late 2016. If I had to guess, gay men are venting about the Trump election.
Next we will attempt to understand the recommendation system used by Queerty. Therefore, I linked the main article urls to all the recommended urls. First of all, 49.9% of the recommended articles are Queerty articles and the rest belong to an array of other websites. I then found the set of common tags between the main article and the recommended articles.
Surprisingly, the tags feature are not used to recommend articles to the reader. As you can see on the right, the majority of articles have 0, nada, zilche common tags. It left me thinking, "That's a Queer Recommender."
How does the recommender pick articles for the user? The next obvious link had to be the title of the articles. And bingo! After removing common stop words, you can see in purple, there are many common words in the titles of the main article and the recommended articles.
The focus of this project was to develop our skills in scraping a webpage and to perform an exploratory data analysis. There is a lot more information I would have like to have scraped, such as the comments themselves. I think it would be informative to understand the comments using a sentiment analysis. Also, I would like to explore just the top, visible, 6 articles of the recommender system. It would be interesting to see how changing the ratio of Queerty and non-Queerty articles effects the readership and the bottom line. Queerty, hit me up if you want to explore together!