b3ta.com links
You are not logged in. Login or Signup
Home » links » Link 336554 | Random (Thread)

This is a normal post Not really, I'm not that great.
Essentially grabs the file, strips HTML tags (so it's pretty much just the textual content of the page left), iterates through an array of words, counting the occurrences, sorts the array in descending order and calculates the width/colour of the rectangle for each word based on the number of times it appears on the page.

There's also a basic caching system for the built-in news sources, so it only requests the page if it hasn't done so for more than 5 minutes.
(, Sat 4 Jul 2009, 20:16, Reply)