Jump to content

Webpage parsing

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Macoder

Macoder

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
Is there a function that returns the code of a webpage as a buffer or string? If so, what library is it in? I did some research and found a bunch that could be downloaded, but I want a built-in one, if possible.

#2
theonejb

theonejb

    Learning Programmer

  • Members
  • PipPipPip
  • 52 posts
C/C++ doesn't have any library function to get a complete web page, since that is highly OS dependent. You can however use the sockets library of the system you are using to achieve the same thing.

#3
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts
Use boost asio library, which is a cross-platform C++ library for network programming, and it's easy to use.

Boost.Asio

#4
carly

carly

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
ON Windows, just use Win32 api (1 line of code or 5 with COM)