开发者社区 问答 正文

您好,我使用您的itunes模拟遇到问题? 400 报错

您好,我使用您的itunes模拟遇到问题? 400 报错

@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 ~]#

展开
收起
爱吃鱼的程序员 2020-06-01 14:17:42 509 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个不太清楚哦,你可以调试试试呀。或者重新抓包分析下。。

    2020-06-01 14:17:43
    赞同 展开评论