Exemplo n.º 1
0
        /// <summary>
        /// Extracts the main body of article, including embedded media such as
        /// images & videos from a URL and removes all the surrounding clutter.
        /// </summary>
        /// <param name="url">A valid URL</param>
        /// <param name="html">HTML as string</param>
        /// <param name="bestImage">Whether extract the best image of the article</param>
        /// <returns>A <see cref="Extract"/></returns>
        public Extract Extract(string url = null, string html = null, bool bestImage = false, bool keepHtmlFormatting = false)
        {
            Extract  extract = new Aylien.TextApi.Extract(configuration);
            Response r       = extract.call(url, html, bestImage.ToString(), keepHtmlFormatting.ToString());

            extractRateLimitParameters(r);
            return(extract);
        }
 /// <summary>
 /// Extracts the main body of article, including embedded media such as
 /// images & videos from a URL and removes all the surrounding clutter.
 /// </summary>
 /// <param name="url">A valid URL</param>
 /// <param name="html">HTML as string</param>
 /// <param name="bestImage">Whether extract the best image of the article</param>
 /// <returns>A <see cref="Extract"/></returns>
 public Extract Extract(string url = null, string html = null, bool bestImage = false, bool keepHtmlFormatting = false)
 {
     Extract extract = new Aylien.TextApi.Extract(configuration);
     Response r = extract.call(url, html, bestImage.ToString(), keepHtmlFormatting.ToString());
     extractRateLimitParameters(r);
     return extract;
 }