本文整理汇总了C#中BaseLib.GlobusHttpHelper.GetDataWithTagValueByTagAndAttributeNameWithId方法的典型用法代码示例。如果您正苦于以下问题:C# GlobusHttpHelper.GetDataWithTagValueByTagAndAttributeNameWithId方法的具体用法?C# GlobusHttpHelper.GetDataWithTagValueByTagAndAttributeNameWithId怎么用?C# GlobusHttpHelper.GetDataWithTagValueByTagAndAttributeNameWithId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseLib.GlobusHttpHelper
的用法示例。
在下文中一共展示了GlobusHttpHelper.GetDataWithTagValueByTagAndAttributeNameWithId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CrawlingLinkedInPage
//.........这里部分代码省略.........
}
catch { }
}
}
if (!item.Contains("<!DOCTYPE html>"))
{
int startindex = item.IndexOf("\"summary_lb\"");
if (startindex > 0)
{
try
{
string start = item.Substring(startindex).Replace("\"summary_lb\"", "");
int endindex = start.IndexOf("\",\"associatedWith\"");
string end = start.Substring(0, endindex);
Current_Company = end.Replace(",\"specialties_lb\":", string.Empty).Replace("<br>", string.Empty).Replace("\n", string.Empty).Replace("\"", string.Empty).Replace("summary_lb", "Summary").Replace(",", ";").Replace("u002", "-").Replace("•", string.Empty).Replace(":", string.Empty);
LDS_BackGround_Summary = Current_Company;
}
catch { }
}
}
}
catch { }
}
if (string.IsNullOrEmpty(LDS_BackGround_Summary))
{
try
{
LDS_BackGround_Summary = HttpHelper.GetDataWithTagValueByTagAndAttributeNameWithId(stringSource, "div", "summary-item-view");
LDS_BackGround_Summary = Regex.Replace(LDS_BackGround_Summary, "<.*?>", string.Empty).Replace(",", "").Replace("\n", "").Replace("<![CDATA[", "").Trim();
}
catch { }
}
}
catch { }
#endregion
#region Education
try
{
string[] str_UniversityName = Regex.Split(stringSource, "link__school_name");
foreach (string item in str_UniversityName)
{
try
{
string School = string.Empty;
string Degree = string.Empty;
string SessionEnd = string.Empty;
string SessionStart = string.Empty;
string Education = string.Empty;
if (stringSource.Contains("link__school_name"))
{
if (!item.Contains("<!DOCTYPE html>"))
{
try
{
try
{
int startindex = item.IndexOf("fmt__school_highlight");
string start = item.Substring(startindex).Replace("fmt__school_highlight", "");