iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old January 10th, 2008, 07:20 AM   #1
WebForumz Member
 

Join Date: Aug 2007
Location: Haverhill
Posts: 63
Thanks: 1
Thanked 1 Time in 1 Post
Rep Altering Power: 0 Phil is on a distinguished road
Is it possible to parse data from a different website into my website?

I'm not entirely sure where to start on this.

Basically a website I'm currently working on for a Financial Advisor Company want to have a display of the current Stock indices on their page

This information can be easily accessed from various websites.
Ideally they would like parts of the information from the table in this London Stock Exchange page (LSE page)




To my mind the page needs
  1. when accessed/refreshed to access the LSE page
  2. collect the data from this page
  3. carry out some manipulations of this data
  4. display this information on the page
I just don't know really where to start to do this so any help/suggestions would be useful? It doesn't need to be ASP if a different language would be able to do this easier/better?

Last edited by Phil; January 11th, 2008 at 06:00 AM.. Reason: mending the broken link
Phil is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 10th, 2008, 08:35 PM   #2
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,629
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
Re: Is it possible to parse data from a different website into my website?

I got "400 Bad Request" with your link!

You could do it either ways:I never tried it but the article I found look's promising

Last edited by Monie; January 10th, 2008 at 08:39 PM..
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 10th, 2008, 09:08 PM   #3
Elite Veteran
 

Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,800
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Rep Altering Power: 0 alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all
Re: Is it possible to parse data from a different website into my website?

The best way is to use the PHP cURL functions.
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 10th, 2008, 10:23 PM   #4
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,629
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
Re: Is it possible to parse data from a different website into my website?

I've use this perfectly but the Style Sheet seems to be "neglected"

HTML Code:
<%
      Dim objHTTP
      Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
      objHTTP.Open "GET", "http://www.webforumz.com", false
      objHTTP.Send
      Response.Write objHTTP.ResponseText
%>
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 10th, 2008, 10:41 PM   #5
Elite Veteran
 

Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,800
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Rep Altering Power: 0 alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all
Re: Is it possible to parse data from a different website into my website?

Monie, the stylesheet is relative the the site.
e.g.
<link href="style.css">

That would refer to a file on your site that you didn't have now that you've stolen someone's page ha.

So you have to replace the link from relative to absolute.

You'd do it like so in php:
Code:
//assume $grab holds a string of the page we got
$grab str_replace('style.css''http://www.sitename.com/style.css'$grab); 
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 10th, 2008, 11:08 PM   #6
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,629
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
Re: Is it possible to parse data from a different website into my website?

Oh I see...
That means we have to "borrow" their .css file and keep/copy it in our local css folder, right!

Cool...
Thanks.
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 11th, 2008, 06:45 AM   #7
Elite Veteran
 

Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,800
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Rep Altering Power: 0 alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all
Re: Is it possible to parse data from a different website into my website?

No it means we have to point to there's instead of ours (which doesn't exist).
So we replace the link with a link to their style.css.
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old January 11th, 2008, 08:18 PM   #8
Most Reputable Member
 

Join Date: Feb 2004
Location: Borneo
Age: 28
Posts: 1,629
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Altering Power: 0 Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough Monie is a jewel in the rough
Re: Is it possible to parse data from a different website into my website?

Right...
That clear things up! Thanks..
Monie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring Website Data deeztreezeez How is this done? 1 March 31st, 2008 02:39 PM
Website disabled, data transfer exceeded. jotto Web Hosting and Domains 9 September 19th, 2007 12:03 AM
Website developers’ website - pls comment art Full Website Reviews 4 September 2nd, 2006 01:54 PM


Search Engine Optimization by vBSEO 3.2.0 RC8