Coursera Web Scraping Catalog

Michael Wang
Posted on Aug 12, 2019

Introduction

Coursera is the world's biggest MOOC (Massive Online Open Course) provider with 37 million registered students spread over 4,000 courses. Founded by computer science professors, Andrew Ng and Daphne Koller from Stanford University, Coursera offers a chance for anyone with an internet connection to learn at their own pace.  

Research Questions:

I wanted to explore and better understand the online course marketplace through the simple question: what makes a student choose a particular course? 

To dive deeper, I asked three specific questions of my data:

  1. Do users choose courses based on the university / company / partner that provides the content?
    • Is name recognition and prestige a primary consideration in enrolling for a course? 
  2. Do ratings matter? Are the highest rated courses the most enrolled in?
  3. Does the career growth of others drive enrollment in a particular course? 
    • Coursera displays a metric for career benefit based on past surveys for each course.
Partner vs Enrollment- can see Stanford University occupies the highest enrollment numbers. Will have to be weighted against course offerings and length of offering for more clarity.

Method:

Web Scraping Technique

To get the data on each course, I created 2 spiders in Scrapy; one to go through the course catalog and one to explore the course sitemap (an afterthought when I found the course catalog limited the number of courses displayed to only 1000). 

For each course I looked at the following primary attributes for my analysis:

  • Name of Course
  • Partner
  • Rating
  • Number of Reviews / Ratings
  • Career Benefit Percentages
  • Total Enrollment (response variable)

Data Cleaning

By grabbing data from courses by section, I had to do a substantial amount of data cleaning to get the information into a workable form. One of my main challenges was handling multiple different features combined into a single column (ex. "Difficulty Level," "Language," "Approx. hours to complete" all in the same cell). I addressed this by using regular expressions to filter through and categorize specific results into new columns and performing a gather and spread operation to capture certain categorical variables. 

Box plot consolidating courses by rating and measuring them against their total enrollment. There does not appear to be a significant increase in enrollment due to higher ratings though this would have to be weighed against the number of courses offered to better substantiate this argument.

Conclusions:

Ratings: Do ratings matter for enrollment? At a very preliminary level, it does not appear ratings have much influence on course enrollment. All courses seem to have had an average rating of 3.0 or higher and the spread of enrollment did not seem predisposed toward the highest ratings. Without accounting for number of courses in each category however, this could simply be a result of most courses being within a certain spread of reviews. 

Partner: Does the brand name of the course creator matter? It does appear certain universities (some unexpected ones) have a large segment of the overall user base of Coursera. Besides some Ivy League schools like Stanford University (popular, in part, due to their length of time one the site and number of offerings), it is interesting to note that universities from outside the United States break into the top 10, suggesting the website use is not limited to US students. 

Career Benefit: Looking at courses that reported career benefits (3 kinds) and comparing them all with enrollment seemed to show no substantial increase in course signup over differing proportions of career benefit. This is interesting because it appears Coursera uses this as a method to entice enrollment. The effect it has, I would assume, is that it encourages enrollment without comparison of the actual percentage number. Put another way, the idea of a career benefit is more useful than the percentage of people who claimed it was. 

Future Direction:

With more time, I would like to go deeper into my analysis of these multiple attributes (ex. Approx length of course in hours) and better account for multiple factors that would affect my current data to get more solidly built conclusions. Ultimately, it may be an interesting practice project to train a machine learning model to predict a course's enrollment based on existing data. Web scraping other MOOC providers would also give me a bigger picture overview of the online course landscape in general. 

About Author

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

2019 airbnb alumni Alumni Interview Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Big Data Book Launch Book-Signing bootcamp Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Industry Experts Job Jon Krohn JP Morgan Chase Kaggle lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest recommendation recommendation system regression Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Tableau TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp