C# HTML scraping between tags -
okay i'm trying skype tool have "dictionary" command retrieve meaning of word urban dictionary @ moment i'm able load whole html document in string this:
 private void urbandictionary(string term)         {             httpwebrequest request = (httpwebrequest)webrequest.create("http://www.urbandictionary.com/define.php?term=" + term);             httpwebresponse response = (httpwebresponse)request.getresponse();              streamreader stream = new streamreader(response.getresponsestream());             string final_response = stream.readtoend();              messagebox.show(final_response);         } the problem want meaning
<div class='meaning'> "meaning" </div> i have tried kinds of stuff cant manage retrieve text between "div" tags.
how this?
use htmlagilitypack library, need.
http://www.codeproject.com/articles/659019/scraping-html-dom-elements-using-htmlagilitypack-h
Comments
Post a Comment