Skip to content

Commit

Permalink
find title for first line body
Browse files Browse the repository at this point in the history
  • Loading branch information
guojianyong committed Feb 7, 2020
1 parent ab5093b commit e498144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def parse_html(path):
try:
html = open(path, "r").read()
h2t = html2text.HTML2Text()
h2t.inline_links = False
h2t.ignore_links = False
h2t.ignore_images = False
h2t.inline_links = True
h2t.ignore_links = True
h2t.ignore_images = True
soup = BeautifulSoup(html,'html.parser',from_encoding='utf-8')
title = _get_title(soup, path)

Expand Down

0 comments on commit e498144

Please sign in to comment.