I am using Cheerio to parse the html and then running the following:
Cheerio
+$("#price1").text()|| +$("#price2").text() || undefined