Example #1
0
        /// <summary>
        /// 获取主页html代码
        /// </summary>
        /// <returns></returns>
        private bool GetHtml()
        {
            string url = "https://www.zhihu.com/people/" + url_token + "/following";

            html = HttpHelp.DownLoadString(url);
            return(!string.IsNullOrEmpty(html));
        }
Example #2
0
        /// <summary>
        /// 根据想要获取的数据类型来获得HTML内容
        /// </summary>
        /// <returns></returns>
        private string GetHtml(ZHUrlPoolType type)
        {
            string html;
            string url = CommonConstant.ZHRoot + url_token + "/" + Enum.GetName(typeof(ZHUrlPoolType), type).ToLower();

            html = HttpHelp.DownLoadString(url);
            return(html);
        }
Example #3
0
 private bool GetHtml()
 {
     JSONstring = HttpHelp.DownLoadString(url);
     Console.WriteLine("Json下载完成");
     return(!string.IsNullOrEmpty(JSONstring));
 }