Parsing or Downloading Data from a market exchange website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wqr786
Forum Newbie
Posts: 13
Joined: Fri Sep 08, 2006 2:47 am

Parsing or Downloading Data from a market exchange website

Post by wqr786 »

I would like help. If someone could provide me a coding example of simple task. For instance:

I have a website, such as http://www.swissquote.ch/fcgi-bin/stock ... mbols=NESN
Now the ?NESN when entered, provides data which can be seen on this site.
I am interested in parsing/downloading the data and storing it in my database.

How do I do it? I am not familiar with parsing techniques in PHP. Help would be really appreciated.

Thanks,
Waqar
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

What you are wanting to do is called scraping. First off, you need to ask if this is legal as some site do not want there content stolen like that. Secondly, parsing information from a page involves several file system functions. This has been discussed many times before here. Search around the forums and I am sure you will find some code examples.
Post Reply