Skip to content
Imitate login the social network sites.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
ImitateLogin.thrift update call method to support plugins. Aug 25, 2016

Imitate Login


This project is used fo imitate login the social network. Such as weibo, qq, facebook or twitter.

Finished part

  • Weibo
  • WeiboWap
  • Baidu
  • WeChat

Plan to support

  • Taobao
  • QQ
  • Facebook
  • Twitter
  • Google

How to use it?

  • This project is code by csharp, you can use .Net Framework or Mono to run it.
  • You can test it through the LoginTestTool project which depend on Gtk+ or WPF.
  • You can also call this lib on multri language through Apache thrift.
  • The only method at this project is LoginResult Login(1: string userName, 2: string password, 3: LoginSite loginSite); on LoginHelper.cs.
  • You will get the result contain result type, descript message, cookies dictionary.


There are some demo at plugins dir in order to tell you how to develop an extend plugin for imitate login. The extend plugins will be used for solve some problems such as CAPTCHA, second verify, QR code and so on.

Support Mode

  • Thrift RPC (Apache Thrift)
  • MEF (Managed Extensibility Framework)


In order to use the plugins, you must add their config at extension.conf under runtime dir. Then the imitate login will be known how and when call the plugin. If you forgot add this, the plugin will be ingored.

This is the format what config file support followed behind:

    "Extensions": [{
        "ExtendType": 2,
        "SupportSite": [
        "Path": null,
        "Host": null,
        "Port": 0,
        "UrlFormat": "http://localhost:2920/Mail/SendMail?loginSite={0}&imageUrl={1}",
        "HttpMethod": "GET"
    }, {
        "ExtendType": 1,
        "SupportSite": [
        5, 1],
        "Path": "Extensions",
        "Host": null,
        "Port": 0,
        "UrlFormat": null,
        "HttpMethod": null
    }, {
        "ExtendType": 3,
        "SupportSite": [
        "Path": null,
        "Host": "",
        "Port": 7801,
        "UrlFormat": null,
        "HttpMethod": null

Demo & Tools


The Apache License 2.0 applies to all samples in this repository.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.