# Obtain the Title of a Website

| Comments

The idea is to retrieve the html file of the website and parse it to find the content between <title> and </title>.

To get the html file, we need a library in C++, as the standard library has no such functions. I choose the libcurl library, and you can download it here: http://curl.haxx.se/libcurl/.

To parse the html file, I use the regular expression library, which is based on GNU systems.

Here is my code: