Here is the html…
<iframe width="100%" height="166" scrolling="no" frameborder="no"
src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F11111111&auto_play=false
&show_artwork=true&color=c3000d&show_comments=false&liking=false
&download=false&show_user=false&show_playcount=false"></iframe>
I’m using NodeJS. I’m trying to extract the trackID, in this case 11111111 following tracks%2F. What is the most stable method for performing this?
Should I use regex or some JS string method such as substring() or match()?
You can find tracks with node module [url + jsdom + qs]
Try this
The result is: