Comments (2)
贴一下报错信息:
➜ Xweibo git:(master) ✗ python3 src/del.py
Traceback (most recent call last):
File "src/del.py", line 14, in <module>
weibo.login(WEIBO_USERNAME, WEIBO_PASSWORD)
File "/Users/champion/test/Xweibo/src/weibo.py", line 46, in login
s_user_name = self.get_username()
File "/Users/champion/test/Xweibo/src/weibo.py", line 110, in get_username
username_quote = urllib.parse.quote_plus(self.user_name)
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/parse.py", line 807, in quote_plus
string = quote(string, safe + space, encoding, errors)
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/parse.py", line 791, in quote
return quote_from_bytes(string, safe)
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/parse.py", line 816, in quote_from_bytes
raise TypeError("quote_from_bytes() expected bytes")
TypeError: quote_from_bytes() expected bytes
from xweibo.
@Champion97 抱歉,现在才看到这个issue(github的提醒机制有点弱啊)
你输入的WEIBO_USERNAME是微博昵称还是用于登录的邮箱?报的是编码错误,我猜测你输入到是昵称,是中文,所以报错了。我在README里写了,这里应该是填写登录时用的账号,例如邮箱、手机号等,而不是微博昵称。在这里上确实有点误导用户了。
from xweibo.
Related Issues (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 xweibo.