当前位置: 首页>>代码示例>>C#>>正文


C# GlobusHttpHelper.GetTextDataByTagAndAttributeName方法代码示例

本文整理汇总了C#中GlobusHttpHelper.GetTextDataByTagAndAttributeName方法的典型用法代码示例。如果您正苦于以下问题:C# GlobusHttpHelper.GetTextDataByTagAndAttributeName方法的具体用法?C# GlobusHttpHelper.GetTextDataByTagAndAttributeName怎么用?C# GlobusHttpHelper.GetTextDataByTagAndAttributeName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GlobusHttpHelper的用法示例。


在下文中一共展示了GlobusHttpHelper.GetTextDataByTagAndAttributeName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GroupRequestSendersForBrowseGroupunique


//.........这里部分代码省略.........
                                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                                    }
                                }
                            }
                            catch (Exception ex)
                            {
                                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                            }
                            try
                            {
                                int Counter = 0;
                                string[] grpurlArr1 = Regex.Split(grpurl, "/");
                                foreach (var grpurlArr_item in grpurlArr1)
                                {
                                    Counter++;
                                }
                                CheckStatus = grpurlArr1[Counter - 1];
                                if (string.IsNullOrEmpty(CheckStatus))
                                {
                                    CheckStatus = grpurlArr1[Counter - 2];
                                }
                            }
                            catch (Exception ex)
                            {
                                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                            }
                            try
                            {
                                string crtstatus = "";
                                if (findstatus.Contains("clearfix groupsJumpBarTop") && !findstatus.Contains("Join this group to see the discussion") ||findstatus.Contains("_42ft _4jy0 _4jy4 _4jy2 selected _51sy"))
                                {
                                    try
                                    {
                                        List<string> GroupType = objGlobusHttpHelper.GetTextDataByTagAndAttributeName(findstatus, "span", "fsm fcg");
                                        try
                                        {
                                            groupType = GroupType[0];
                                        }
                                        catch (Exception ex)
                                        {
                                           // GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                                        }
                                      

                                        if (grpurl.Contains(FBGlobals.Instance.GroupsGroupCampaignManagerGetFaceBookGroupUrl))                                                      //"https://www.facebook.com/groups/"
                                        {
                                            aaaa = grpurl.Replace(FBGlobals.Instance.GroupsGroupCampaignManagerGetFaceBookGroupUrl, string.Empty).Replace("/", string.Empty);      //"https://www.facebook.com/groups/"
                                        }
                                        else
                                        {
                                            aaaa = grpurl.Replace(FBGlobals.Instance.fbhomeurl, string.Empty).Replace("/", string.Empty);                                            //"https://www.facebook.com/"
                                        }
                                        try
                                        {
                                            stradminlink = findstatus.Substring(findstatus.IndexOf("group_id="), (findstatus.IndexOf("\"", findstatus.IndexOf("group_id=")) - findstatus.IndexOf("group_id="))).Replace("group_id=", string.Empty).Replace("\"", string.Empty).Trim();
                                        }
                                        catch (Exception ex)
                                        {
                                            GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                                        }
                                        aaaa = stradminlink;
                                        // string postdataforjoin = "ref=group_jump_header&group_id=" + aaaa + "&fb_dtsg=" + fb_dtsg + "&__user=" + __user + "&phstamp=16581657884875010686";

                                        string postdataforjoin = "ref=group_jump_header&group_id=" + aaaa + "&__user=" + __user + "&__a=1&__dyn=7n8apij35CFUSt2u5KIGKaExEW9ACxO4pbGAdGm&__req=9&fb_dtsg=" + fb_dtsg + "&__rev=1055839&ttstamp=265816690497512267";
                                        string localstr = FBGlobals.Instance.GroupsGroupCampaignManagerGetFaceBookGroupUrl;                                                                         // "https://www.facebook.com/groups/"
                                        string Responseofjoin = HttpHelper.postFormData(new Uri(FBGlobals.Instance.GroupGroupRequestManagerAjaxGroupsMembership), postdataforjoin, ref localstr);  //"https://www.facebook.com/ajax/groups/membership/r2j.php?__a=1"
开发者ID:shah8701,项目名称:faceboard,代码行数:67,代码来源:GroupManager.cs


注:本文中的GlobusHttpHelper.GetTextDataByTagAndAttributeName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。