Development Blog With Code Updates : Developercast.com

March 20, 2007

WaxJelly Blog: The easiest way to scrape details from a MySpace profile page with PHP

Filed under: Development — @ 10:41 am

From the WaxJelly blog today comes a handy bit of code for anyone out there looking to scrape details from just about any MySpace page out there (quick and easy).

It’s amazing how just a little optimization on the part of myspace makes crawling their site so much easier. We’re going to scrape the user detail (name, age, sex, etc..) from a profile, using the header info…

The script grabs the contents of the given URL, loops through, pulls out the meta tag information and uses that as a key to grab the rest of the user’s information (including name, age, city, state, etc).

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress