Ejemplo n.º 1
0
        public static string GetHtmlString(string url, Encoding encoding, int reCount)
        {
            var result = "";

            while (result == "" && reCount > 0)
            {
                result = HtmlHelp.GetHtmlString(url, encoding);
                --reCount;
            }

            return(result);
        }
Ejemplo n.º 2
0
        public static bool DownImage(string url, string dirname, int maxsize, string referer, int reDown)
        {
            var result = false;

            while (!result && reDown > 0)
            {
                result = HtmlHelp.DownPixivImage(url, dirname, 1024, referer);
                --reDown;
            }

            return(result);
        }