Monday, February 14, 2005

Collage of your LJ friends pictures

Zimbabao displays the results of his hack script that fetches the userpics of the friends of the specified LJ user and displays them in the form of a collage. Vrikodhara shows the script that Zimbabao used and writes a simpler script that conforms to the LJ Bots policy.

Vrikodhara's script gets a line separated list of usernames which are friends of a user from the URL http://www.livejournal.com/misc/fdata.bml?user=$username and then goes on to display all the pictures of each of the friends by accessing the URL http://www.livejournal.com/allpics.bml?user=$friend_username for each friend, and parsing the returned page.

Neat stuff! All webapps should be programmer friendly!

No comments: