Code Monkey home page Code Monkey logo

khan-quality's Introduction

Khan-Quality

An app to find videos that need attention in Khan Academy.

Motivation

When using Khan Academy one day, I found several videos had low resolution, suboptimal sound quality, or several similar critical comments in "Tips & Thanks" that were unanswered. This often correlated with videos that needed updating. I created this project to hopefully find all such videos automatically and highlight them for further attention.

Note: I'm a huge fan of Khan Academy, and this app is made to be helpful, not critical.

Challenges

  1. Contructing a list of videos from Khan Academy.
    • Problems: Full topic tree is 74MB JSON file, and is in recursive nested tree format.
    • Goal: crawl it myself efficiently, with the goal of having a flat, non-nested array of videos.
    • Solution: Recursively crawl with promises, flatten on each recursive tail call.
  2. Mongo DB incorrect count of videos compared to topic list
    • Solution: originally had not closed db correctly. Fixed, but problem persists. Realized some identical videos are listed under multiple topics.

What I've learned

Khan Academy grows at a staggering pace. When I originally retrieved the topic tree in July 15th, 2017, there were three or four videos with broken links, and had 17997 videos, 9563 of which were unique. As of August 4, 2017, there are 18374 videos, 9599 of which are unique. In addition, only one of video was found to have a broken link, a significant improvement.

Misc.

  • MapDB to analyze data? or hadoop/mapreduce/spark

Dev

$ git clone https://github.com/cktang88/khan-quality
$ cd khan-quality
$ npm i --dev

# create a config.env(containing db vars) and Procfile for running on Heroku locally

# 1. collecting data: 
# put 'worker: npm run collectData' in Procfile
$ heroku local -e config.env

# 2. analyzing data:
# put 'worker: npm run analyze' in Procfile
$ heroku local -e config.env

Code linting with AirBnB's style guide:

$ npm run lint

License

This work is licensed under the The MIT License

khan-quality's People

Contributors

cktang88 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.