A simple implementation of the ExtractListener interface that will listen for words and add them to a list. This allows you to quickly build a list of all of the words on a web page.
Inheritance: IExtractListener
コード例 #1
0
ファイル: BasicExtract.cs プロジェクト: neismit/emds
 public IList<object> ExtractList(WebPage page)
 {
     this.Listeners.Clear();
     ListExtractListener listener = new ListExtractListener();
     this.AddListener(listener);
     this.Extract(page);
     return listener.List;
 }
コード例 #2
0
 /// <summary>
 /// Extract from the web page and return the results as a list.
 /// </summary>
 /// <param name="page">The web page to extract from.</param>
 /// <returns>The results of the extraction as a List.</returns>
 public IList<Object> ExtractList(WebPage page)
 {
     Listeners.Clear();
     var listener = new ListExtractListener();
     AddListener(listener);
     Extract(page);
     return listener.List;
 }
コード例 #3
0
        /// <summary>
        /// Extract from the web page and return the results as a list.
        /// </summary>
        /// <param name="page">The web page to extract from.</param>
        /// <returns>The results of the extraction as a List.</returns>
        public IList <Object> ExtractList(WebPage page)
        {
            Listeners.Clear();
            var listener = new ListExtractListener();

            AddListener(listener);
            Extract(page);
            return(listener.List);
        }