Question
Using chhttp to get data off a page.
Hello,
I'd like to pull specific data off a page using cfhttp if it's possible. I start by getting the entire page.
<cfhttp url="https://somesite.com/stream/" result="test">
<cfdump var="#test#">In a perfect world, I'd like to extract just the first occurrence of the title and artist from the results into two variables.
<li><span class="song-time">1:49 PM</span> <span class="song-title">Wanted Dead Or Alive</span>—<span class="song-artist">Bon Jovi</span></li>Is there a way to capture everything between the two span classes into two variables? I don't need the time span.
Thanks!
Gary
