How to get web pages?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yannick Turgeon

    How to get web pages?

    Hello all,

    I've got a Visual Basic program (personal use) that downlaod and process
    some web pages. I'd like to rebuild it in C++ and use it under linux.

    Anybody can point me out where I can find information on getting web pages
    HTML code using C++: libraries, already existing code, ...
    Suggestions/Recommendations ?

    TIA.

    Yannick
  • Victor Bazarov

    #2
    Re: How to get web pages?

    "Yannick Turgeon" <NOBODY@NOWHERE .COM> wrote...[color=blue]
    > I've got a Visual Basic program (personal use) that downlaod and process
    > some web pages. I'd like to rebuild it in C++ and use it under linux.
    >
    > Anybody can point me out where I can find information on getting web pages
    > HTML code using C++: libraries, already existing code, ...
    > Suggestions/Recommendations ?[/color]


    Mozilla is the not-for-profit behind the lightning fast Firefox browser. We put people over profit to give everyone more power online.

    news:comp.os.li nux.development .apps

    Victor


    Comment

    • Tommy McDaniel

      #3
      Re: How to get web pages?

      Yannick Turgeon <NOBODY@NOWHERE .COM> wrote in message news:<H%hSa.661 7$5e7.468970@ne ws20.bellglobal .com>...[color=blue]
      > Hello all,
      >
      > I've got a Visual Basic program (personal use) that downlaod and process
      > some web pages. I'd like to rebuild it in C++ and use it under linux.
      >
      > Anybody can point me out where I can find information on getting web pages
      > HTML code using C++: libraries, already existing code, ...
      > Suggestions/Recommendations ?
      >
      > TIA.
      >
      > Yannick[/color]

      I've used libcurl (http://curl.haxx.se/libcurl/) for that before. It's
      a C library (although it has bindings for like 20 languages, including
      C++), but I've used it just fine in some C++ programs I've written.

      Tommy McDaniel

      Comment

      • Cedric LEMAIRE

        #4
        Re: How to get web pages?

        "Phlip" <phlip_cpp@yaho o.com> wrote in message news:<bfd81u$be 0@dispatch.conc entric.net>...[color=blue]
        > Yannick Turgeon wrote:
        >[color=green]
        > > I've got a Visual Basic program (personal use) that downlaod and process
        > > some web pages. I'd like to rebuild it in C++ and use it under linux.
        > >
        > > Anybody can point me out where I can find information on getting web pages
        > > HTML code using C++: libraries, already existing code, ...
        > > Suggestions/Recommendations ?[/color]
        >
        > Linux will come with 'wget' and 'lynx'. Just use either of those to
        > download.
        >
        > Then use a lite language, such as Ruby or Perl, to process the page. C++ is
        > too low-level to bother with using here.[/color]
        I don't agree totally. libcurl is *very* easy to use and very powerful for
        extracting pages. If the page processing is not so complex, C++ might suit you.

        Otherwise, you can also have a look to 'CodeWorker' as a scripting language
        for complex parsing on HTML (http://www.codeworker.org).

        -- Cedric

        Comment

        Working...