Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【无法登录】“为了保障你的账号安全,暂不支持使用网页版微信。你可以前往微信官网” #1009

Open
dlwfeng opened this issue Dec 7, 2023 · 3 comments

Comments

@dlwfeng
Copy link

dlwfeng commented Dec 7, 2023

我按照说明安装了itchat这是我的测试代码

import itchat

itchat.auto_login()

itchat.send('Hello, filehelper', toUserName='filehelper')

扫描二维码后,在这个方法返回了一串html

    def parseString(self, string):
        """Parse a document from a string, returning the document node."""
        parser = self.getParser()
        try:
            parser.Parse(string, True)
            self._setup_subset(string)
        except ParseEscape:
            pass
        doc = self.document
        self.reset()
        self._parser = None
        return doc
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, viewport-fit=cover" />
    <meta name="color-scheme" content="light dark">
    <title>微信网页版</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      body {
        font-family: Microsoft YaHei,-apple-system-font,Helvetica Neue,Helvetica,sans-serif;
        font-size: 14px;
        line-height: 1.6;
      }
      .msg {
        width: 400px;
        margin: 0 auto;
        text-align: center;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
      .msg-title {
        font-size: 24px;
        font-weight: 400;
        color: #191919;
      }
      @media (prefers-color-scheme: dark) {
        .msg-title {
          color: rgba(255, 255, 255, 0.9);
        }
      }
      .msg-desc {
        margin-top: 10px;
        font-weight: 400;
        color: #999999;
        word-break: break-word;
      }
      .msg-button-area {
        margin-top: 72px;
      }
      .msg-button {
        width: 228px;
        height: 32px;
        background-color: #07C160;
        border: 0;
        color: #fff;
        border-radius: 3px;
        cursor: pointer;
        display: inline-block;
        vertical-align: middle;
        line-height: 32px;
        text-decoration: none;
      }
      .msg-button:hover {
        background-color: #06ad56;
      }
    </style>
  </head>
  <body>
    <div class="msg">
      <div class="msg-text-area">
        <p class="msg-desc">为了保障你的账号安全,暂不支持使用网页版微信。你可以前往微信官网&nbsp;https://weixin.qq.com/&nbsp;下载客户端登录。</p>
      </div>
          </div>
  <script src="//res.wx.qq.com/t/wx_fed/webwx/res/static/vendor/vendor_4bfe99c.js"></script><script>webpackJsonp([0],[function(n,exports){n.exports=""}]);/* vhtml-webpack-plugin version: 0.1.38 */</script></body>
</html>

image

@12471220
Copy link

12471220 commented Dec 9, 2023

我看到有人用go 写的一个比较新的叫openwechat,可以调用客户端版本,但是找不到python较新版本的

@AAAAQWERTY666
Copy link

我看到有人用go 写的一个比较新的叫openwechat,可以调用客户端版本,但是找不到python较新版本的

大哥可以推一下么

@meteorOSS
Copy link

meteorOSS commented Feb 18, 2024

你可以通过开启uos协议绕过这个限制
可以参考 https://github.com/meteorOSS/WeChatBc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants