Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion goose/extractors/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@


KNOWN_ARTICLE_CONTENT_TAGS = [
{'tag': 'article'},
{'attr': 'itemprop', 'value': 'articleBody'},
{'attr': 'class', 'value': 'post-content'},
{'tag': 'article'},
{'attr': 'class', 'value': "story-body-text"},
{'attr': 'class', 'value': "story-content"},
]


Expand Down
2 changes: 1 addition & 1 deletion goose/extractors/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def clean_title(self, title):

# check if last letter is in TITLE_SPLITTERS
# if so remove it
if title_words[-1] in TITLE_SPLITTERS:
if len(title_words) != 0 and title_words[-1] in TITLE_SPLITTERS:
title_words.pop(-1)

# rebuild the title
Expand Down
2 changes: 1 addition & 1 deletion goose/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
limitations under the License.
"""

version_info = (1, 0, 25)
version_info = (1, 0, 26)
__version__ = ".".join(map(str, version_info))
Empty file.
Empty file.