I am trying to figure out a way to pull stock market quotes from www.cnbc.com into c++ code where I can manipulate them and create formulations. I really dont know where to start though. I am guessing you would need PHP knowledge to retrieve the data from the site, but where do you go from there? Can someone please give me some direction?
From my limitted knowledge of PHP, it is server side. Meaning, that you never see the php code if they actually use it.
What you might want to do is, connect to the server using sockets and all that jazz . Request the page and parse the stuff that comes back. I worked on a similar project 2 months ago.
What you might want to do is, connect to the server using sockets and all that jazz . Request the page and parse the stuff that comes back. I worked on a similar project 2 months ago.
That is going to be your best bet. You will need to develop a parser and get really comfy with the HTML specification and HTTP protocol.
Unless the website offers you an API or an RSS feed that you can download them. You will need to interact with the size using HTTP over TCP.
You COULD develop this in PHP, but equally you could develop this in any programming language with sockets support. There would be no major advantage of doing it in PHP.