Accessing MySpace profile information, image, name, friend ammount, etc.

Status
Not open for further replies.
Jul 5, 2006
312
1
0
I hate myspace. It's the biggest pile of **** in history but I need help with it. I see a lot of sites accessing people's profile information dynamically. How do they do this? Is there some command? i have spent the last hour scouring the internet on a tutorial or something... Example: http://www.msfan.com/
 


heh, I suppose that would be the hard way. Not to mention most people's profile are so fucked up with CSS and other crap that would be a pain. But I'll try it until someone reponds with an easier solution.

Okay, so I looked at the html code for a myspace profile and this would work fairly well. But I need a little suggestion: For example, I am looking for the users Location. The HTML that the location is housed in is this:

<td class="text" width="193" bgcolor="#ffffff" height="75" align="left"><br>
<br>
Female
<br>
18 years old
<br>
Frederick, MARYLAND
<br>
United States
<br>
<br>
<DIV style="width:80px;height:20px;" ID="UserDataNode0" CLASS="DataPoint=OnlineNow;UserID=28020288;"></div>
<br>
Last Login:
7/12/2006
<br>
</td>
One I use the file_get_content function, I'll get the html code of the profile but what string pattern parameter would I put into the preg_match_all function?

EDIT: on second thought, I could search for the <br>s, placing flags at each of them and then specifying the 2 <br> flags the data I need is inbetween. Yah?!?!
 
There's not some magic code like: $_GRAB['myspace_user_friends'].
No matter what the css is like, the source code is still the same.

The only way to do it is code it yourself/hire a coder, or buy a premade script.
 
Thats a tough preg match to build; I don't have time to build and test one for you.. but when you are trying to match this becareful of the new lines.. or strip them from the html before trying to run a match.

good luck -Dan
 
Status
Not open for further replies.