当前位置:   article > 正文

wxid转微信号软件执行代码。

wxid转微信号

  wxid转微信号软件执行代码,主要实现在线转换,快速高效软件。主要方便针对wxid转换微信号进行微信好友导出备份,建议你在误删微信数据后,立即停止使用手机,防止新数据写入后把删掉的数据覆盖掉!

  1. “””
  2. Module implementing MainWindow.
  3. “”“
  4. from PyQt5.QtCore import QThread, pyqtSignal, Qt, pyqtSlot
  5. from PyQt5.QtWidgets import *
  6. from PyQt5 import QtGui
  7. from Ui_cronSendMessage import Ui_MainWindow
  8. import sys
  9. import itchat
  10. from itchat.content import *
  11. import datetime
  12. import time
  13. import os
  14. import requests
  15. import json
  16. import re
  17. from urllib.request import urlretrieve
  18. import traceback
  19. current_path = os.path.dirname(os.path.abspath(file))

 

批量导入微信wxid原始码一键转换成微信号。

 

  1. finished_signal = pyqtSignal(object)
  2. def __init__(self, parent=None, label=None, scroll_widget_layout=None, refresh_button=None, exit_button=None):
  3. super().__init__(parent)
  4. self.l = label
  5. self.scroll_widget_layout = scroll_widget_layout
  6. self.refresh_button = refresh_button
  7. self.exit_button = exit_button
  8. # 在控制台中写入信息
  9. def outputWritten(self, text=None):
  10. cursor = self.l.textCursor()
  11. cursor.movePosition(QtGui.QTextCursor.End)
  12. cursor.insertText(text)
  13. self.l.setTextCursor(cursor)
  14. self.l.ensureCursorVisible()
  15. # 获取uuid
  16. def open_qr(self):
  17. for get_count in range(1):
  18. self.outputWritten('获取uuid中……\n')
  19. uuid = itchat.get_QRuuid()
  20. while uuid is None:
  21. uuid = itchat.get_QRuuid()
  22. time.sleep(1)
  23. self.outputWritten('成功获取uuid\n')
  24. if itchat.get_QR(uuid, picDir=r'%s' % os.path.join(current_path, 'qrcode.jpg')):
  25. break
  26. elif get_count >= 1:
  27. self.outputWritten("获取二维码出错,请重启程序\n")
  28. sys.exit()
  29. return uuid
  30. # 二维码登陆
  31. def login_wechat(self):
  32. try:
  33. uuid = self.open_qr()
  34. self.outputWritten("请扫描二维码\n")
  35. waitForConfirm = False
  36. while 1:
  37. status = itchat.check_login(uuid)
  38. if status == '200':
  39. break
  40. elif status == '201':
  41. if waitForConfirm:
  42. self.outputWritten('请进行确认\n')
  43. waitForConfirm = True
  44. elif status == '408':
  45. self.outputWritten('重新加载二维码\n')
  46. time.sleep(3)
  47. uuid = self.open_qr()
  48. waitForConfirm = False
  49. userInfo = itchat.web_init()
  50. # print(userInfo)
  51. itchat.show_mobile_login()
  52. print('itchat.show_mobile_login() 执行完成!')
  53. # itchat.get_friends(True)
  54. itchat.get_friends()
  55. print('itchat.get_friends(update=True)[0:] 执行完成!')
  56. self.outputWritten('登陆成功!账号为:%s\n' % userInfo['User']['NickName'])
  57. itchat.start_receiving()
  58. print('itchat.start_receiving() 执行完成!')
  59. self.refresh_button.setText("已登录:{}".format(userInfo['User']['NickName']))
  60. self.exit_button.setEnabled(True)
  61. except Exception as e:
  62. print("登录出错:", e)
  63. self.outputWritten('登陆出错:{}\n'.format(e))
  64. try:
  65. # 获取群聊列表
  66. chatrooms = itchat.get_chatrooms()
  67. print('chatrooms = itchat.get_chatrooms() 执行完成!')
  68. print(type(chatrooms))
  69. #return chatrooms
  70. except Exception as e:
  71. self.outputWritten("获取群聊列表出错:{}\n".format(e))
  72. try:
  73. # 获取好友列表
  74. friends = itchat.get_friends()
  75. print('friends = itchat.get_friends() 执行完成!')
  76. print(type(friends))
  77. #return friends
  78. except Exception as e:
  79. self.outputWritten("获取群聊列表出错:{}\n".format(e))
  80. try:
  81. # 获取好友列表
  82. mps = itchat.get_mps()
  83. print('mps = itchat.get_mps() 执行完成!')
  84. print(type(mps))
  85. #return mps
  86. except Exception as e:
  87. self.outputWritten("获取群聊列表出错:{}\n".format(e))
  88. if chatrooms and friends and mps:
  89. return [chatrooms, friends, mps]
  90. def run(self):
  91. try:
  92. self.refresh_button.setEnabled(False)
  93. self.exit_button.setEnabled(True)
  94. self.finished_signal.emit(self.login_wechat())
  95. except Exception as e:
  96. self.outputWritten("运行登录线程出错:{}\n".format(e))

批量实现wxid转换微信号wxid批量转换微信号软件wxid数据提取软件。用软件可以将wxid转成微信号了。

 

参考:wxid转微信号软件

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/669853
推荐阅读
相关标签
  

闽ICP备14008679号