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

会删除个人发表的微博吗? #1

Closed
WonderLand33 opened this issue Dec 6, 2018 · 2 comments
Closed

会删除个人发表的微博吗? #1

WonderLand33 opened this issue Dec 6, 2018 · 2 comments

Comments

@WonderLand33
Copy link

No description provided.

@WonderLand33
Copy link
Author

贴一下报错信息:

➜  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

@pinple
Copy link
Owner

pinple commented Dec 27, 2018

@Champion97 抱歉,现在才看到这个issue(github的提醒机制有点弱啊)
你输入的WEIBO_USERNAME是微博昵称还是用于登录的邮箱?报的是编码错误,我猜测你输入到是昵称,是中文,所以报错了。我在README里写了,这里应该是填写登录时用的账号,例如邮箱、手机号等,而不是微博昵称。在这里上确实有点误导用户了。

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

2 participants