Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to select specific DIV in web API response (html)

$
0
0

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:

API working

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:

Line of code I need

I hope this makes sense.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>