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
3
1
from lxml .html import tostring
4
2
import logging
5
3
import lxml .html
6
4
import re , sys
7
5
6
+ from .cleaners import normalize_spaces , clean_attributes
7
+ from .encoding import get_encoding
8
+
8
9
utf8_parser = lxml .html .HTMLParser (encoding = 'utf-8' )
9
10
10
11
def build_doc (page ):
Original file line number Diff line number Diff line change 9
9
from lxml .html import document_fromstring
10
10
from lxml .html import fragment_fromstring
11
11
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
18
18
19
19
20
20
logging .basicConfig (level = logging .INFO )
You can’t perform that action at this time.
0 commit comments