【发布时间】:2016-06-26 05:22:03
【问题描述】:
更新:这是过去几天的临时问题。
我开发了一个python apple news api客户端,并成功推送文章预览到我的apple news频道。 无论如何,当我检查那些文章的状态时,大多数都是 FAILED_PROCESSING。只有一个上线了,但没有图片(动画 GIF)。
没有关于错误的详细信息,我猜不出哪里出了问题。文章在新闻预览工具中看起来不错。 有人知道吗?有什么方法可以调试问题?
谢谢!
>>>api_key = 'xxxxx'
>>>secret_key = 'xxxx'
>>>channel_id = 'xxxx'
>>>client = ApiClient(api_key, secret_key, channel_id=channel_id)
>>>articles = client.search_articles()
>>>articles
{u'data': [{u'accessoryText': None,
u'createdAt': u'2016-04-27T08:36:35Z',
u'id': u'xxxxx',
u'isCandidateToBeFeatured': False,
u'isDevelopingStory': False,
u'isPreview': True,
u'isSponsored': False,
u'links': {u'channel': u'https://news-api.apple.com/channels/xxxxx',
u'sections': [u'https://news-api.apple.com/sections/xxxxx'],
u'self': u'https://news-api.apple.com/articles/xxxxx'},
u'modifiedAt': u'2016-04-27T08:36:47Z',
u'revision': u'AAAAAAAAAAD//////////w==',
u'shareUrl': u'https://apple.news/xxxxxx',
u'state': u'FAILED_PROCESSING',
u'title': u'Test 1',
u'type': u'article'},
....
{u'accessoryText': None,
u'createdAt': u'2016-04-14T07:07:27Z',
u'id': u'xxxx',
u'isCandidateToBeFeatured': False,
u'isDevelopingStory': False,
u'isPreview': True,
u'isSponsored': False,
u'links': {u'channel': u'https://news-api.apple.com/channels/xxxx',
u'sections': [u'https://news-api.apple.com/sections/xxxx'],
u'self': u'https://news-api.apple.com/articles/xxxx'},
u'modifiedAt': u'2016-04-14T07:07:45Z',
u'revision': u'AAAAAAAAAAD//////////w==',
u'shareUrl': u'https://apple.news/xxxx',
u'state': u'LIVE',
u'title': u"Test 2",
u'type': u'article'}],
u'links': {u'next': None,
u'self': u'https://news-api.apple.com/channels/xxxx/articles'}}
【问题讨论】:
标签: python apple-news