Skip to content

fearofcode/scraps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This directory contains miscellaneous code that seems worthwile but is small and not undergoing further development.

* videorank.py: This little script will grab the Atom feed entries for a YouTube channel and sort them according to how "hot" they are, with old videos with a lot of views still staying pretty hot but also allowing cool new videos to rank highly. The ranking measure is borrowed from Hacker News' alleged ranking formula [1]. It is currently:

     rank = (view count - 1)/(age in days + 2)**1.5

At the moment all it does is spit out an HTML file as a console app. I might eventually convert it to a web app.

[1] http://news.ycombinator.com/item?id=231209

About

Miscellaneous stuff that doesn't fit anywhere else

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages