Jon12345 0 Posted August 31, 2010 Report Share Posted August 31, 2010 Any ideas on how you might scrape a sentence from a webpage that contains your keyword phrase? Just want the sentence and nothing else. I believe there is a new "contains" qualifier if this helps. Thanks, Jon Quote Link to post Share on other sites
meter 145 Posted August 31, 2010 Report Share Posted August 31, 2010 I can do it in C#. First scrape all the text on the page. Then use the following code to extract all the sentences from the text you scraped:http://www.codeproject.com/KB/cs/SentenceParsingAndStatics.aspx Then loop through each sentence and check if it contains your keyword. If it does, that's the sentence you want. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.