Bot that watches Khan Academy videos
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
bot.skl
controller.py

README.md

A Sikuli/Python 3.x bot that watches Khan Academy videos.

To respect Khan Academy's Terms of Service, video links are not distributed publicly. You can grab your own using cURL and pup.

Requirements and Assumptions

  1. Bot runs on Windows 7.
  2. Khan Academy videos will show a play button on load when you visit a video page directly after opening a browser.

Running the bot

Close your browser first. Make a playlist text file with one route per line.

/v/route/to/video-about-math
/v/route/to/video-about-physics
/v/route/to/video-about-economics
...

Run python controller.py.

The bot will look for the "X" to close the browser when its done so as to keep controller.py out of OS-specific kill commands and related permission issues. (TODO: Add other "X" buttons)

Mark file

The bot will create a mark text file in its directory. It holds the line in the playlist where the bot started reading. It updates whenever the bot terminates so it can pick up where it last left off.

Change the mark file to the (zero-based) line number where you want the bot to start next time you fire it up.

Why?

This is used to break the compulsion loop for user retention on Khan Academy as a POC from the Moral Cheating series.