Pygoogle语音无法登录 [英] Pygoogle voice not logging In
问题描述
Google刚刚更新了其Google语音平台.当我的googlevoice登录名停止工作时,这似乎直接相关.
Google just updated their google voice platform. Which seems to directly correlate when my googlevoice login stopped working.
我尝试了以下操作:
- 允许此处建议的验证码( pygooglevoice-login-error )
- 在这里适应2.7解决方案没有任何运气 Python Google Voice
- 退出我的会话,即voice.logout()
- 已卸载并重新安装了pygooglevoice.
- 尝试了其他Google语音帐户.
在Google语音网站改头换面之前,此代码可以正常工作.python 3.5.2 Windows Server2012R2
This code was working perfectly up until the google voice website makeover. python 3.5.2 windows Server2012R2
from googlevoice import Voice
from googlevoice.util import input
voice = Voice()
voice.login(email='email@gmail.com', passwd='mypassword')
def sendText(phoneNumber,text):
try:
voice.send_sms(phoneNumber, text)
except Exception:
pass
sendText(phoneNumber=[aaabbbcccc],text="Hello from Google Voice!")
voice.logout()
错误日志:
Traceback (most recent call last):
File voice.py, line 95, in login
assert self.special
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
line 7, in <module>
voice.login(email='********', passwd='*******')
File voice.py, line 97, in login
raise LoginError
googlevoice.util.LoginError
推荐答案
沃德·芒迪(Per Ward Mundy):
Per Ward Mundy:
提供了新版本的gvoice命令行sms文本消息传递,该消息传递已修复,可与Google新型的现代化"AngularJS" gvoice网络界面一起使用.万一有人想知道的话,那是个很小的改变,它可以正常工作.将这些命令粘贴到您的外壳中以进行升级:
New version of gvoice command line sms text messaging is available, which is fixed to work with Google's new modernized "AngularJS" gvoice web interface. It was a small change to get it working, in case anyone is wondering. Paste these commands into your shell to upgrade:
cd ~
git clone https://github.com/pettazz/pygooglevoice
cd pygooglevoice
python setup.py install
cp -p bin/gvoice /usr/bin/.
pip install --upgrade BeautifulSoup
这篇关于Pygoogle语音无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!