File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- from cleaners import normalize_spaces , clean_attributes
2- from encoding import get_encoding
31from lxml .html import tostring
42import logging
53import lxml .html
64import re , sys
75
6+ from .cleaners import normalize_spaces , clean_attributes
7+ from .encoding import get_encoding
8+
89utf8_parser = lxml .html .HTMLParser (encoding = 'utf-8' )
910
1011def build_doc (page ):
Original file line number Diff line number Diff line change 99from lxml .html import document_fromstring
1010from lxml .html import fragment_fromstring
1111
12- from cleaners import clean_attributes
13- from cleaners import html_cleaner
14- from htmls import build_doc
15- from htmls import get_body
16- from htmls import get_title
17- from htmls import shorten_title
12+ from . cleaners import clean_attributes
13+ from . cleaners import html_cleaner
14+ from . htmls import build_doc
15+ from . htmls import get_body
16+ from . htmls import get_title
17+ from . htmls import shorten_title
1818
1919
2020logging .basicConfig (level = logging .INFO )
You can’t perform that action at this time.
0 commit comments