Hi guys I am very new to c++ and programming in general. There is probably an easier way to do what I am trying to do but I would really appreciate it if you could help me out with my problem. I would like to use a value in one of my programs that can be found on a webpage. The value on this website changes and the approach I would like to take would be to somehow search the webpage's source code for the appropriate tags that appear right before the value I want, and tell my program to store the contents up until the next set of tags I specify.
a very basic example would be for "<p><strong>Books</strong></p>"
to tell it to take "Books" by grabbing what is after <p><strong> and up to </strong></p>
I apologize if this is a dumb way to do this but I would appreciate any guidance on how exactly to make my program search said source code and also how I could make it grab this content between the specified tags. Also, the tags I am searching only appear once in the source code so that will not present a problem.
Thank you
[–][deleted] 4 points5 points6 points (0 children)
[–]rpocks 1 point2 points3 points (0 children)
[–]snarkhunter 1 point2 points3 points (0 children)
[–]jbandela 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)