Skip to content

Commit

Permalink
Merge pull request dataabc#113 from cloudy-sfu/patch-1
Browse files Browse the repository at this point in the history
fix: Iist out of range
  • Loading branch information
dataabc authored Nov 6, 2021
2 parents 8eac80d + 2ad0b83 commit 217a614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weibo/spiders/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ def parse_weibo(self, response):
weibo['topics'] = self.get_topics(txt_sel)
reposts_count = sel.xpath(
'.//a[@action-type="feed_list_forward"]/text()').extract(
)[1]
)
reposts_count = "".join(reposts_count)
try:
reposts_count = re.findall(r'\d+.*', reposts_count)
except TypeError:
Expand Down

0 comments on commit 217a614

Please sign in to comment.