针对微信返回格式变化修改app_msg_ext_info
This commit is contained in:
parent
bfc0db48df
commit
cd135b97b4
3
start.py
3
start.py
@ -128,10 +128,11 @@ def GetArticleList(jsondir):
|
|||||||
for item in list: #一个item里可能有多篇文章
|
for item in list: #一个item里可能有多篇文章
|
||||||
artidx = 1 #请注意这里的编号只是为了保存html方便,并不对应于真实的文章发文位置(比如头条、次条、3条)
|
artidx = 1 #请注意这里的编号只是为了保存html方便,并不对应于真实的文章发文位置(比如头条、次条、3条)
|
||||||
comm_msg_info = item["comm_msg_info"]
|
comm_msg_info = item["comm_msg_info"]
|
||||||
app_msg_ext_info = item["app_msg_ext_info"]
|
|
||||||
pubstamp = comm_msg_info["datetime"]
|
pubstamp = comm_msg_info["datetime"]
|
||||||
pubdate = Timestamp2Datetime(pubstamp)
|
pubdate = Timestamp2Datetime(pubstamp)
|
||||||
if comm_msg_info["type"] == 49: #49为普通图文类型,还有其他类型,暂不考虑
|
if comm_msg_info["type"] == 49: #49为普通图文类型,还有其他类型,暂不考虑
|
||||||
|
app_msg_ext_info = item["app_msg_ext_info"]
|
||||||
url = app_msg_ext_info["content_url"] #文章链接
|
url = app_msg_ext_info["content_url"] #文章链接
|
||||||
idx = artidx
|
idx = artidx
|
||||||
title = app_msg_ext_info["title"]
|
title = app_msg_ext_info["title"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user