python:pygooglevoice无法登录 [英] python: pygooglevoice unable to login

查看:149
本文介绍了python:pygooglevoice无法登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pygooglevoice发送短信,但无法获得身份验证才能正常工作.

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

我以此为例: https://github .com/jluellen/pygooglevoice/blob/master/examples/sms.py

这就是我得到的:

 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...

推荐答案

Google终止了对XMPP的支持. 因此,所有使用该API与之通信的第三方API都将失败

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

这篇关于python:pygooglevoice无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆