zoukankan      html  css  js  c++  java
  • 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





  • 相关阅读:
    过滤器
    JSTL自定义标签
    EL表达式自定义函数
    和 区别
    JSTL标签
    jsp内置对象
    Java堆、栈和常量池以及相关String的详细讲解(转)
    jsp和servlet学习总结
    JAVA多线程实现的两种方式
    redis示例
  • 原文地址:https://www.cnblogs.com/xtfnpgy/p/9285431.html
Copyright © 2011-2022 走看看