Web Design and Development Forums

Is it possible to parse data from a different website into my website?

This is a discussion on "Is it possible to parse data from a different website into my website?" within the ASP Forum section. This forum, and the thread "Is it possible to parse data from a different website into my website? are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Jan 10th, 2008, 10:20   #1 (permalink)
Junior Member
 
Join Date: Aug 2007
Location: Haverhill
Posts: 40
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; Jan 11th, 2008 at 09:00. 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 Jan 10th, 2008, 23:35   #2 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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; Jan 10th, 2008 at 23:39.
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 Jan 11th, 2008, 00:08   #3 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: Is it possible to parse data from a different website into my website?

The best way is to use the PHP cURL functions.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


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 Jan 11th, 2008, 01:23   #4 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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: Select all
<%
      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 Jan 11th, 2008, 01:41   #5 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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:
PHP: Select all

//assume $grab holds a string of the page we got
$grab str_replace('style.css''http://www.sitename.com/style.css'$grab); 
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


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 Jan 11th, 2008, 02:08   #6 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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 Jan 11th, 2008, 09:45   #7 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
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.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


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 Jan 11th, 2008, 23:18   #8 (permalink)
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,567
Blog Entries: 2
Send a message via Yahoo to Monie
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

Thread Tools
Rate This Thread
Rate This Thread:

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
Website Developer needed to re-build our website. Immediate start! lysworld Job Opportunities 0 Mar 14th, 2008 08:59
Website disabled, data transfer exceeded. jotto Hosting & Domains 9 Sep 19th, 2007 03:03
What is a Parse Error? rubyfruit New to Web Design 1 Jul 5th, 2007 20:40
Learning website skills for charity website milly Introduce Yourself 12 Apr 28th, 2007 09:20
Website developers’ website - pls comment art Free Web Site Critique 4 Sep 2nd, 2006 16:54



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:54.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59