8000 Improved #65 which has given warning, added cssselect lib, bumped to … · AramZS/python-readability@e2bc1ea · GitHub
[go: up one dir, main page]

Skip to content

Commit e2bc1ea

Browse files
committed
Improved buriy#65 which has given warning, added cssselect lib, bumped to 0.5.1
1 parent 1cb17d9 commit e2bc1ea

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,4 @@ Updates
5555

5656
- 0.3 Added Document.encoding, positive_keywords and negative_keywords
5757
- 0.4 Added Videos loading and allowed more images per paragraph
58+
- 0.5 Preparing a release to support Python versions 2.6, 2.7, 3.3 and 3.4

readability/readability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_article(self, candidates, best_candidate, html_partial=False):
213213
output = document_fromstring('<div/>')
214214
best_elem = best_candidate['elem']
215215
parent = best_elem.getparent()
216-
siblings = parent.getchildren() if parent else [best_elem]
216+
siblings = parent.getchildren() if parent is not None else [best_elem]
217217
for sibling in siblings:
218218
# in lxml there no concept of simple text
219219
# if isinstance(sibling, NavigableString): continue

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name="readability-lxml",
16-
version="0.5",
16+
version="0.5.1",
1717
author="Yuri Baburov",
1818
author_email="burchik@gmail.com",
1919
description="fast python port of arc90's readability tool",
@@ -24,7 +24,8 @@
2424
packages=['readability'],
2525
install_requires=[
2626
"chardet",
27-
lxml_requirement
27+
lxml_requirement,
28+
"cssselect"
2829
],
2930
classifiers=[
3031
"Environment :: Web Environment",

0 commit comments

Comments
 (0)
0