What I am trying to do is too download an audio file from a website. The audio file plays once you click the little earmuffs and it triggers a sound to play. I was wondering if it is possible to find and download the sound.
My attempt at trying to find it:
public void grabAudio()
{
string s = "http://pokedream.com/pokedex/pokemon/bulbasaur";
HtmlWeb hw = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = hw.Load(s);
var audio = doc.DocumentNode.SelectNodes("//div[@class='triggers']//img#pokecry-trigger")[0];
if (doc.DocumentNode.SelectNodes("//div[@class='triggers']//img#pokecry-trigger")[0] != null)
{
//I have no idea what im doing :(
}
}
Picture of what I am trying to get and Link to website
Any and all help is appreciated :)