WWW-Myspace - Re: by zip code

Posted on Sun Feb 19 22:45:44 2006 by grantg in response to 1821 (See the whole thread of 2)
Re: by zip code
Hi Josh,

There isn't a function that scans myspace's "Browse" pages, which is basically what you're talking about. If you'd like to start writing a "browse" method, it'd be a great Perl exercise. :)

The method should probably take a hash or hash reference for its arguments, so that it can be expanded upon (and so you don't have to implement the entire advanced search at once :).

So for example we'd call:

@local_friends = $myspace->browse( { 'zip_code' => 90032 } ); And when we get more advanced we'd be able to: @friends = $myspace->browse( { 'zip_code' => 90032, 'raduis' => 20, 'min_age' => 18, 'max_age' => 45 } ); and so on.

(Note that I currently send people who want this functionality to myspacebot.com).

Write a response