本文整理汇总了C#中BaseLib.GlobusHttpHelper.getHtmlfromUrlNewRefre方法的典型用法代码示例。如果您正苦于以下问题:C# GlobusHttpHelper.getHtmlfromUrlNewRefre方法的具体用法?C# GlobusHttpHelper.getHtmlfromUrlNewRefre怎么用?C# GlobusHttpHelper.getHtmlfromUrlNewRefre使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseLib.GlobusHttpHelper
的用法示例。
在下文中一共展示了GlobusHttpHelper.getHtmlfromUrlNewRefre方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StartInBoardProGetDataWithPagination
//.........这里部分代码省略.........
}
if (string.IsNullOrEmpty(SearchCriteria.Function))
{
recruiterUrl = recruiterUrl.Replace("&facet.FA=", "");
}
if (string.IsNullOrEmpty(SearchCriteria.Relationship))
{
recruiterUrl = recruiterUrl.Replace("&facet.N=", "");
}
if (string.IsNullOrEmpty(SearchCriteria.InerestedIn))
{
recruiterUrl = recruiterUrl.Replace("&facet.P=", "");
}
if (string.IsNullOrEmpty(SearchCriteria.Fortune1000))
{
recruiterUrl = recruiterUrl.Replace("&facet.F=", "");
}
if (string.IsNullOrEmpty(SearchCriteria.Group))
{
recruiterUrl = recruiterUrl.Replace("&facet.FG=", "");
}
if (string.IsNullOrEmpty(SearchCriteria.RecentlyJoined))
{
recruiterUrl = recruiterUrl.Replace("&facet.DR=", "");
}
recruiterUrl = recruiterUrl.Trim();
referralUrl = "https://www.linkedin.com/recruiter/search?searchHistoryId=1256614203&searchCacheKey=226602fa-2763-48a7-a2ff-dfddc87c4840%2CIwQE&linkContext=Controller%3ApeopleSearch%2CAction%3AresultsWithFacets%2CID%3A1256614203&page=1&start=0&count=25";
string pageSourceaAdvanceSearch11 = string.Empty;
try
{
pageSourceaAdvanceSearch11 = HttpHelper.getHtmlfromUrlNewRefre(new Uri(recruiterUrl), referralUrl);
}
catch { }
string strTotalPageNO = string.Empty;
if (IsShowLoggerPagecount)
{
strTotalPageNO = Utils.getBetween(pageSourceaAdvanceSearch11, "total\":", ",").Trim();
try
{
pagenumberrecruiter = int.Parse(strTotalPageNO);
Log("[ " + DateTime.Now + " ] => [ Total Results : " + pagenumberrecruiter + " ]");
}
catch (Exception)
{
}
pagenumberrecruiter = (pagenumberrecruiter / 25) + 1;
if (pagenumberrecruiter == -1)
{
pagenumberrecruiter = 2;
}
if (pagenumberrecruiter == 1)
{
pagenumberrecruiter = 2;
}