Comments (9)
是啊
from wxbot.
咦,那怎么办?(手动斜眼
from wxbot.
那就别encode了啊 = =
from wxbot.
去除 encode 报错
UnicodeEncodeError: 'gbk' codec can't encode character '\u2006' in position 43797: illegal multibyte sequence
更新最新版(4/28)后报错一样。
以上均为用 2to3.py 转换后的文件。
from wxbot.
那就打开文件的参数改成wb
from wxbot.
修改为
f.write(r.text.encode('utf-8').decode('utf-8'))
报错
UnicodeEncodeError: 'gbk' codec can't encode character '\u2006' in position 43797: illegal multibyte sequence
修改为
f.write(r.text.decode('utf-8'))
报错
AttributeError: 'str' object has no attribute 'decode'
修改为
f.write(r.text.encode('utf-8'))
报错
TypeError: write() argument must be str, not bytes
from wxbot.
算了,我还是学习一下python 3 以后再说吧。现在先用着python 2.7 的版本吧。
from wxbot.
用r.content啊
from wxbot.
用r.content啊
from wxbot.
Related Issues (20)
- pip install wxbot 出现问题
- python test.py 问题 HOT 4
- 123
- 怎么nohup挂起来? HOT 1
- 请问可以通过c++程序,调用wechaty给某个好友发消息么?
- ModuleNotFoundError: No module named '__main__.wxbot'; '__main__' is not a package HOT 2
- 请问如何获得微信号,不是类似这样的@26a8e683f8450eb100f6d8b631ac1987。
- 新创建群即使把群加入通讯录,必须要重登才有群名字,不然群名字为unknown
- 如何获取已关注的公众号列表?
- Login failed HOT 2
- WXBox是从哪继承出来的 HOT 2
- 不维护了吧 网页版本上不去了 找了新方案,大家可以看下下面的
- 做机器人,营销系统,客服系统,监管系统的可以 看我的API https://wkteam.gitbook.io/api/ HOT 1
- 关于wxBot无法使用的问题(新手必看!!!!)
- 怎么是python2代码,晕 HOT 1
- 致wxBot开源作者的留言 HOT 1
- 这个项目还维护吗
- 爬取地理网站的图片报错raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant http://? HOT 1
- Python2早过时了啊……应该转一下Python3 HOT 2
- 替代wxBot项目, ntchat来了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxbot.