473,383 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Parse a friends page on MySpace

Basically I'm trying to parse my friends page on MySpace. It's easy to get Page 1.

I can use "MSXML2.ServerXMLHTTP" to get the page and parse all my friends. The question is, how do I get page 2 and page 3 and so on?

There's a simple Javascript post on the page, eg to get page 4 it's

javascript:__doPostBack('ctl00$cpMain$pagerTop','4 ')

How can I automate this "Post". Can you somehow send this __doPostBack function to the page?

I want to store all my friends on my computer as a backup and doing it manually would take forever. Is there a way to do this?

Thanks, Kitten.
Jan 31 '07 #1
1 2310
Look at the query string for each additional page, then just do a loop in ASP to get each page, until you find "Error, page not found" or whatever it happens to be on MySpace. I have done this for many situations like this.

So you can loop like (Ce careful not to cause an endless loop:
Expand|Select|Wrap|Line Numbers
  1. do until ISayStop (Or for x = 1 to 100, etc.)
  2.  
  3.     x = x + 1
  4.     xVar = getSrc("http://myspace.com/page?page=" & x)
  5.  
  6.     if instr(1,xVar,"None Found",1) then
  7.         exit do (I think)
  8.     else
  9.         doparsingstuff
  10.     end if
  11.  
  12. loop
  13.  
  14.  
Best regards,

Michael C. Gates
Feb 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: amiri.arash | last post by:
Hi! I want to feed the news section of my band - homepage with the mySpace blog of our band (in order to keep redundancy low). The band homepage is written in PHP. I wrote an xsl-stylesheet...
45
by: marklaa | last post by:
I have created a banner, uploaded it (http://i15.photobucket.com/albums/a382/marklaa/AbsoluteSalsaBanner1.jpg) and now i want to insert this at the top of the page on my myspace site...
6
by: c676228 | last post by:
Hi everyone, I searched on the internet and didn't get exactly what I want. Do you have any? -- Betty
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
0
markmcgookin
by: markmcgookin | last post by:
Hi Folks, First off, Happy New year to all! This is a bit of a strange question, now I am a fairly accomplished .asp and .html web developer, and very computer literate, and I have recently...
1
drhowarddrfine
by: drhowarddrfine | last post by:
MySpace is a coding nightmare. Many web developers will ignore questions about it because it is just too much work and hard to decipher what is going on. The code for it is also non-standard and...
3
by: l23hornet | last post by:
I redesigned my myspace with div overlays, but somehow i have removed the ads from the top of my page. I was wondering if anyone knew a way that i would be able to place it back at the top of my...
1
by: aryalexis | last post by:
how acn i get this gif image at the top of the artist page on myspace? can anybody help me out please!!
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.