Git Product home page Git Product logo

hotlist-snapshots's Introduction

Hotlist Snapshots

A repository for snapshots of the KA hot list every two hours.

Inspired by MrMagma's similar project, which was updated for a bit, then broke.

This should record snapshots every two hours (MrMagma's updated once a day).

Ideally, in order to get a good sample size, I would run this for around four months before trying to analyse the data. We'll see how that goes.

###Accessing all the data The easiest way to access the data is by using Rawgit to load allSnapshotData.js as a script tag on your webpage. It will call a allSnapshotData function, which you define, and pass it an object, set up like this: {/*Time snapshot was captured*/ : /*Contensts of the hotlist at that time*/}. For example, the following object might be passed into allSnapshotData:

{
   "Dec_19_11:10:54_UTC_2016" : ({
      "cursor" : "[Some KA String]",
      "snapshots" : [
        {/*Program data like author, title here*/}, {/*Program data like author, title here*/}
      ],
   }),
   "Dec_19_15:10:54_UTC_2016" : ({
      "cursor" : "[Some KA String]",
      "snapshots" : [
        {/*Program data like author, title here*/}, {/*Program data like author, title here*/}
      ],
   }),
   /*etc, but a whole lot more data.*/
}

This is set up the way it is because of how KhanAcademy lets you load external resources.

###Accessing a part of the data The other way to use access the data, if you want to load a smaller sample size, is to load allSnapshots.js as a script tag. This will pass a list of snapshot files to an allSnapshots function, which is up to you to define. You can then use this list of snapshot files to load in the files, also as script tags. They each pass their data to a snaphshot function, again, which you define.

###Examples I made a basic program to give you an idea of how to access the data here on Khan Academy. Edward made a program with this data that does word frequency analysis on the titles of programs. You can find it here.

hotlist-snapshots's People

Contributors

matthiasportzel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

hotlist-snapshots's Issues

Update Inquiry

@MatthiasPortzel I notice the last update to this project was 7 years ago. Is there any (more recent) data which hasn't been uploaded to this repo?

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.