python: pygooglevoice unable to login

随声附和 提交于 2019-12-08 04:02:30

问题


I'm trying to use pygooglevoice to send an SMS, but I can't get get authentication to work properly.

I'm using this as an example: https://github.com/jluellen/pygooglevoice/blob/master/examples/sms.py

And this is what I get:

 from googlevoice import Voice
 from googlevoice.util import input
 voice = Voice()
 user_name = "myemail"
 user_pass = "somepassword"
 voice.login(user_name, user_pass)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 70, in login
    galx = re.search(r"name=\"GALX\"\s+value=\"(.+)\"", content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Not entirely sure what I'm doing wrong...


回答1:


Google has terminated their support for XMPP. Hence all the third party API's that use that to communicate with it will fail



来源:https://stackoverflow.com/questions/24376472/python-pygooglevoice-unable-to-login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!