Jump to content

I am trying to create a program in C++ that will get information off a webpage to be analysed. I am having trouble finding information to get started with working with networks. Can anyone help me out? I am trying to strengthen my programming knowledge in C++ so I am not looking at how to do this in a different language.

Thanks.

Link to comment
https://linustechtips.com/topic/588921-c-and-webpage-manipulation/
Share on other sites

Link to post
Share on other sites

First you'll need something like curl to get the html page itself, then you'll need an xml parser library ( eg. libxml2 and its c++ wrapper libxml++)

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

11 hours ago, Nineshadow said:

First you'll need something like curl to get the html page itself, then you'll need an xml parser library ( eg. libxml2 and its c++ wrapper libxml++)

I can't figure out how to install these in Visual Studio 2015.

Link to post
Share on other sites

11 hours ago, Nineshadow said:

First you'll need something like curl to get the html page itself, then you'll need an xml parser library ( eg. libxml2 and its c++ wrapper libxml++)

Ok after hours of research I got the libcurl library to install via nuget command line package manager (command: Install-Package rmt_curl). However I can't figure out how to get libxml2 working. I am pretty new to programming so I don't have a clue what to do. From my understanding libxml2 library is a C library and I need libxml++ to convert to C++? Is there anything you can point me too on how to install this? I am trying to use this example from the curl website: https://curl.haxx.se/libcurl/c/htmltitle.html

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×