解决只有标题没有文章内容抓取失败的BUG
This commit is contained in:
parent
2a93089d72
commit
fd2a49ebbe
10
Gmeek.py
10
Gmeek.py
@ -220,11 +220,11 @@ class GMEEK():
|
||||
period="。"
|
||||
else:
|
||||
period="."
|
||||
try:
|
||||
self.blogBase[listJsonName][postNum]["description"]=issue.body.split(period)[0]+period
|
||||
except:
|
||||
self.blogBase[listJsonName][postNum]["description"]=''
|
||||
|
||||
|
||||
if issue.body==None:
|
||||
issue.body=''
|
||||
|
||||
self.blogBase[listJsonName][postNum]["description"]=issue.body.split(period)[0]+period
|
||||
self.blogBase[listJsonName][postNum]["top"]=0
|
||||
for event in issue.get_events():
|
||||
if event.event=="pinned":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user