0)      {        if(he!=null)        {          HtmlElementCollectionstrong=he.GetElementsByTagName("strong");          label1.Text="已找到第"+strong[0].Children[1].InnerText+"页";          timer1.Stop();  &-IMDN开发者社群-imdn.cn"> 0)      {        if(he!=null)        {          HtmlElementCollectionstrong=he.GetElementsByTagName("strong");          label1.Text="已找到第"+strong[0].Children[1].InnerText+"页";          timer1.Stop();  & - IMDN开发者社群-imdn.cn">
登录
首页 » Windows开发 » C# 自动查询百度排名

C# 自动查询百度排名

于 2022-07-23 发布 文件大小:58.87 kB
0 43
下载积分: 2 下载次数: 1

代码说明:

C#自动查询网站在百度的排名,精确,上传成功有声音提示string txt = textBox1.Text.Trim();            int index = webBrowser1.Document.Body.InnerHtml.IndexOf(txt);            HtmlElement he = webBrowser1.Document.GetElementById("page");            if (index > 0)            {                if (he != null)                {                    HtmlElementCollection strong = he.GetElementsByTagName("strong");                    label1.Text = "已找到 第 " + strong[0].Children[1].InnerText + " 页";                    timer1.Stop();    &

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696521资源总数
  • 104077会员总数
  • 0今日下载