We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d7643 commit 523c3e9Copy full SHA for 523c3e9
README.md
@@ -8,6 +8,7 @@ Python包装的网页微信API。可以很容易地实现微信机器人。
8
```bash
9
pip install requests
10
pip install pyqrcode
11
+pip install pypng
12
```
13
14
## Demo
wxbot.py
@@ -75,12 +75,8 @@ def get_uuid(self):
75
76
def gen_qr_code(self):
77
string = 'https://login.weixin.qq.com/l/' + self.uuid
78
- qr = pyqrcode.QRCode()
79
- qr.border = 1
80
- qr.add_data(string)
81
- qr.make(fit=True)
82
- img = qr.make_image()
83
- img.save('qr.jpg')
+ qr = pyqrcode.create(string)
+ qr.png('qr.jpg')
84
85
def wait4login(self, tip):
86
time.sleep(tip)
0 commit comments