MySpace Friend List Export
Based on a blog entry I read about backing up your profile, I decided to try and write a script that would grab your entire friend list so you can have a local copy of it. It was kinda hard to do, but I’ve managed to write a relatively simple script that will grab your entire friends list, and display it on the one page. It does so by grabbing each page in the “View All Friends” section, and essentially merges them all together. What you end up with is one page that contains your entire friends list.
Take a look at http://stuff.daniel15.com/php/myspace/get_friends.php for the script so far. Note that it will currently not work on private profiles (although I’m working on a fix for that). For now, if you have a private profile, you must temporarily set your profile to public in order to export the friends list.
You can easily save the page it generates (via File → Save As…) and keep it as a local copy of your friends list. Yes, I know how it displays its output is kinda ugly at the moment, but I’m a coder, not a designer
Hope it’s useful for someone. ![]()
I originally posted this to the MySpace Forums, but thought I should also post it here










October 27th, 2007 at 9:38 pm
[...] code for the MySpace Friend List Export script I wrote a while back is now available for download. If you’re a PHP programmer and are [...]
November 3rd, 2007 at 9:41 pm
Hello this post is amazing.
I like your blog..
bye
December 3rd, 2007 at 2:59 pm
nice script, if I get a chance to f%ck around with it I’ll send you any updates. I wanted to write a back up and then an auto-friend request script in the event that things needed to be fixed. or, generate a list of myspace UIDs so you could comment all your friends at once…
thanks!
December 16th, 2007 at 3:59 am
very interesting, but I don’t agree with you
Idetrorce
January 23rd, 2008 at 6:00 am
Nice name, and great piece of code. Email me if you’d like to discuss methodology and a project I am working on that uses some of this code.
-Daniel
June 5th, 2008 at 8:59 am
AWESOME tool — thanks !
June 10th, 2008 at 8:13 pm
Very nice program. But could you add an option that it creates SQL insert statements so we can store it i mysql database too ? Hope you guys help me achieve that task.Thanks
June 22nd, 2008 at 1:00 am
I’m glad you like it

I’ll be working on a new version sometime in the future, perhaps I’ll make it have a CSV option. Then you could use that to store the data in a MySQL database.