1
回答
您好,我使用您的itunes模拟遇到问题
注册华为云得mate10,2.9折抢先购!>>>   

@aron_whu 你好,想跟你请教个问题:

我在使用您开发的itunes模拟登录的时候遇到一个问题,下面是执行过程

这个是不是编码的问题呢?还是这个接口地址过期了?

[root@localhost ~]# python itunes.py
1375538974.79
login itunes page
please input your apple id and password:
  id:abv@qq.com
 psw:passwd
please wait, logining ... ... ...
connect server ok
request server ok
Traceback (most recent call last):
  File "itunes.py", line 340, in <module>
    itunes_body()
  File "itunes.py", line 217, in itunes_body
    isLoginSuccess, isServerRight, hostName = auth_check(response, hostName, isServerRight, isLoginSuccess)
  File "itunes.py", line 77, in auth_check
    xml_obj = parseString(resp_content)
  File "/usr/lib64/python2.6/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib64/python2.6/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib64/python2.6/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
[root@localhost ~]#

举报
喇叭小新
发帖于4年前 1回/202阅
顶部