Skip to content

Commit

Permalink
Fix: fc2 title (sqzw-x#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Feb 1, 2024
1 parent 1d359ba commit 443d647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/crawlers/fc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@


def getTitle(html): # 获取标题
result = html.xpath('//h3/text()')
result = html.xpath('//div[@data-section="userInfo"]//h3/span/../text()')
if result:
result = result[0]
result = ' '.join(result)
else:
result = ''
return result
Expand Down

0 comments on commit 443d647

Please sign in to comment.