Thread: Use c++ to do my works on web

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    Use c++ to do my works on web

    Hi .
    I wanted to use c++ to save an html file(or maybe php) , then parse it(i can do the parsing!) and then again do something on that page . i mean click on a link , write something , check letters and ... . ( believe me I dont want to spam ) .

    Im not very good at c++ so please tell me what to LEAR , what to Write , what to seek and every thing i need to do .

    thanQ and sorry for my bad English

  2. #2
    Registered User
    Join Date
    Sep 2010
    Posts
    3
    for example i want my bot to click on a link in a page .
    i mean , again for ex. : go too google page , write " C++ programming " in the text box and click on search bottom , then find the best result and then again click on a link .

  3. #3
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    And while you are at it, I need the resources for a "AAA" XBox 360 title.

    Thanks in advance,
    Soma

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    3
    and one more question !
    if c++ is not a good lang for this , so what's the best?

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It involves mostly just fetching a web page, parsing it, finding the address of what you want to click, fetch that URL and so on.
    The problem lies in the parsing. No language is going to make that easier.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    >> No language is going to make that easier.

    Every language can make it easier. The only thing you need is an SGML parser, of which implementations can be found or written for any language people use today, I presume.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    That doesn't change the fact that you still have to do parsing, albeit at a higher level.
    You still have to search for the appropriate links or interpret how the page looks in order to find the right information.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by Elysia View Post
    That doesn't change the fact that you still have to do parsing, albeit at a higher level.
    You still have to search for the appropriate links or interpret how the page looks in order to find the right information.
    I'm not trying to change the fact that you have to do the parsing by pointing out that there are libraries with parsers available for programmers to use. A parser built for a particular kind of document should make it easier to decompose that document if it dares to call itself a parser.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Now it works, now it won't
    By skytreader in forum C Programming
    Replies: 3
    Last Post: 11-23-2009, 09:56 AM
  2. SWEBS Web Server
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-22-2003, 02:46 AM
  3. Frames in ASP.net Web Form (I'm using Visual C# .net)
    By Grayson_Peddie in forum Networking/Device Communication
    Replies: 0
    Last Post: 09-20-2003, 01:57 PM