Is there a way to do this?
  • Ok i need to make a program that will contact a site that updates alot. the program needs to update when the program does. is this possible. if so can i get an explanation? and possilby a tut?
  • What kind of updates are we talking about?

    If it posts RSS feeds you could use those for your updates. If not, you could scrape the page (read the html and pull out the info you need).

    What language do you plan on using?
    Hello World!
  • uhm the site is for like stocks. and i dont know if it has RSS feeds and i use C++. So it is possible though. correct?
  • With a bit of creativity, determination and ingenuity ... anything is possible.
  • What did you mean by the program needs to update when the program does? Did you mean that the program has to update when the site does? That's not too hard. It's all about sockets.

    To make your program cross-platform and simpler I would suggest using some library. For example http://www.alhem.net/Sockets/ . Here is a short plan:
    - Send a request to the website.
    - Extract information from the HTML code you get.
    - Compare it with the old data. At this point you should check if it's worth checking if it's a new data or the same as the previous. Maybe you can just update the info on the screen - that would be simpler and make no noticeable performance difference in most cases.

    If the website is yours, you could simply make a page (like /status.php) that prints only the data you need (no HTML code, unless it must be there).
    "-"...and if data sent to the client is huge, you could use a script (on server) that updates some file whenever needed and the client would check the last modification timestamp before downloading data. This would reduce server traffic.
  • thank you all but i will try to work with that socket library! thank you very much

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Poll

No poll attached to this discussion.

In this Discussion