C ++, Get text from a website

I was told that I should use winsock, but I do not know where to start. For example, I am trying to access, say http://www.newegg.com/ , I am trying to get the textual name of only three products on the first page, Any help is appreciated .: D

+3
source share
7 answers

I would also recommend libcurl for this kind of thing.

You can use the cURL command-line tool to generate example code, which is useful for experimentation.

+4
source

W3.org itself provides sample C / C ++ libraries for Http requests.

Find them here

In particular, find HTTPReq.c

+1

boost poco. . Boost , -. Poco libraru NetSSL, .

P.S. boost:: spirit -, ...

+1

++, , python .

httplib Python , , .. Python , ++, , , , python - , ++. , , , , "" . , , CNN Money , IIRC - 100 python.

-3

Source: https://habr.com/ru/post/1743756/


All Articles