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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -