I have an API that can pass a search query to a web site that I use to lookup products. I use the catalog number to obtain the device identifier. The response that is returned is HTML, and I need to extract one line from the HTML to write to a file. Is it possible to select a specific div in a web API?
My goal is to eventually loop over each product search, pull the one line I need, and then write it to an Excel file.
Here is an example of the API searching a product, and the response:
Here is the single line of code that I need to extract out of the response, I then want to concatenate it to the URL and write the whole link out with each specific device identifier:
I hope this makes sense.