472,352 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 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 2267
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...
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...
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...
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,...
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...
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...
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: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.