Example #1
0
        public MimiSearcher(string url)
        {
            SearchRoot     = url;
            UrlManager     = new UrlManager();
            HtmlDownloader = new HtmlDownloader();
            HtmlParser     = new HtmlParser();
            HtmlOutputer   = new HtmlOutputer();

            // add root-url into url-manager
            UrlManager.Add(SearchRoot, UrlType.Page);
        }
Example #2
0
        internal void Output()
        {
            HtmlOutputer = new HtmlOutputer();
            // save all item-urls into database
            HtmlOutputer.SaveItemUrls(UrlManager.GetAll(UrlType.Item));
            // build a html file with these image-urls
            HtmlOutputer.OutputHtml(UrlManager.GetAll(UrlType.Image));


            //
            // since 2017-8-21 i dont need download any image,
            // instead build a html with these urls to send email
            //
            //
            //foreach (string url in UrlManager.GetAll(UrlType.Image))
            //{
            //    HtmlDownloader.DownloadImage(url);
            //}
        }