I am trying to get a dynamically changing number from a website, I initally tried an approach using webscraping using the libaries cpr and libxml2. But i have encountered a problem in the fact that when i uses the cpr::get method to get the html from the libary i am unable to find the required node i need when i parse it uses libxml. I believe this is due to the fact the number is changing and the code used to change this number on the website is run through javascript which i cannot just get from the cpr command as the code and therefore the number i need isnt actually avaliable from the html. which i have deduced by the fact that the obj->nodesetval returns a null pointer which shouldnt be the case so i decided to bring the full html get response to a .txt document and tried to ctrl+f to find the node’s class name im after but it doesnt appear to be there. Am i missing something or being stupid or is this just not the right approach to take. Any help would be much appreciated
i tried the standard cpr processes of getting a response and parsing with libxml but the node returned a nullptr (as explained above). Let me know if anymore information is needed. Note this is all done in c++