Page 1 of 1

Parsing or Downloading Data from a market exchange website

Posted: Sat Feb 10, 2007 3:41 am
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

Posted: Sat Feb 10, 2007 4:24 pm
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.