日期:2014-05-16  浏览次数:20720 次

C# webbrowser实现百度知道团队邀请助手!

【百度知道团队邀请助手】

是您快速提高百度知道团队成员数和团队排名的利器!

主要功能:

1.运用C#自带的webbrowser自动登录百度;

2.自动采集请在C#.Net分类排名下的所有用户,邀请这些用户加入自己的团队!

3.可以选择新上升的成员和多少级别一下的成员,因为每天只能有20个名额;


自动登录百度代码如下:

                HtmlElement name = WB1.Document.All["username"];
                HtmlElement pwd = WB1.Document.All["password"];
                name.SetAttribute("value", textBox1.Text);
                pwd.SetAttribute("value", textBox2.Text);
                WB1.Document.GetElementById("TANGRAM__3__submit").InvokeMember("Click");

邀请高手代码更改如下:

               IHTMLDocument2 doc = WB1.Document.DomDocument as IHTMLDocument2;
                //doc.parentWindow.execScript(@"team.invite('',10,2,'C.Net开发');", "JavaScript");// 更改为你自己的团队
                foreach (IHTMLElement ele in doc.all)
                {
                    if (ele.className == "invite")
                        ele.click();
                }

项目Demo下载地址:

http://download.csdn.net/detail/xtfnpgy/7315097