-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* _html_to_text is promoted to a public html_text.etree_to_text * html_text.cleaner object is exposed * parsel is imported only when needed * create_root_node implementation is copy-pasted to parse_html, to remove dependency * parsel is removed from install_requiers * README is updated The goal is to allow using html_text in parsel.
- Loading branch information
Showing
6 changed files
with
75 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
__version__ = '0.4.1' | ||
|
||
from .html_text import (extract_text, parse_html, cleaned_selector, | ||
selector_to_text, NEWLINE_TAGS, DOUBLE_NEWLINE_TAGS) | ||
from .html_text import (etree_to_text, extract_text, selector_to_text, | ||
parse_html, cleaned_selector, cleaner, | ||
NEWLINE_TAGS, DOUBLE_NEWLINE_TAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ envlist = py27,py35,py36 | |
deps = | ||
pytest | ||
pytest-cov | ||
parsel | ||
|
||
commands = | ||
pip install -U pip | ||
|