【问题标题】:python skpy search user not workingpython skpy搜索用户不工作
【发布时间】:2017-11-25 18:14:36
【问题描述】:

我想用skpy搜索用户名,我的实际代码是:

from skpy import Skype, SkypeContacts
import skpy

sk = Skype("username", "password") # connect to Skype


print sk.search('test')

错误:

AttributeError: 'Skype' 对象没有属性 'SkypeContacts'

我如何使用这个库搜索用户?

【问题讨论】:

    标签: python-2.7 skype


    【解决方案1】:

    我认为你应该这样做,

    from skpy import Skype, SkypeContacts
    
    sk = Skype("username", "password")
    sr = SkypeContacts(sk).search("test")
    print (sr)
    

    【讨论】:

      猜你喜欢
      • 2017-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多