So I created a bare script for people who are interested in building something like what ga_woo was doing. I could probably host something like this if someone builds something interesting.
Basically the script does this:
Check if users interests are not cached
If not then
- Get users FOAF data
- Parse out array of interests
- cache data
check if interest image array is cached
if not then
print out random image for that interest
- get google images page (I send full headers)
- parse out array of possible images
- cache data
If you hadn't noticed I like caching. The script currently will cache for 5 hours. It will keep checking if the cache is empty though. I'm sure it could be improved but it was a quick hack before going to bed. If I left any debugging code in or forgot to remove some hard coding just let me know. But if you know enough to point it out then it shouldn't be an issue for you. :)
From what I could tell the FOAF works for everyone as I tried a couple non-paid friends accounts and it seemed to work. And google will think the script is Firefox connecting to their servers. I even give them a referrer on their site. Should probably make that the prior interest or something for better hiding on their side.
Not bad for 4K.