There are many ways to get the result, but a simple way would be to use the library, as parsing html is often difficult.
You can try to use libxml
There is also libcurl that allows you to simulate a browser.
But trying to parse the html itself will be ... painful.
source
share