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
2 changes: 1 addition & 1 deletion goose/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Configuration(object):

def __init__(self):
# What's the minimum bytes for an image we'd accept is,
# alot of times we want to filter out the author's little images
# a lot of times we want to filter out the author's little images
# in the beginning of the article
self.images_min_bytes = 4500

Expand Down
4 changes: 2 additions & 2 deletions goose/extractors/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ def calculate_best_node(self):

def is_boostable(self, node):
"""\
alot of times the first paragraph might be the caption under an image
a lot of times the first paragraph might be the caption under an image
so we'll want to make sure if we're going to boost a parent node that
it should be connected to other paragraphs,
at least for the first n paragraphs so we'll want to make sure that
the next sibling is a paragraph and has at
least some substatial weight to it
least some substantial weight to it
"""
para = "p"
steps_away = 0
Expand Down
4 changes: 2 additions & 2 deletions goose/extractors/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def clean_title(self, title):
title = pattern.sub("", title).strip()

# split the title in words
# TechCrunch | my wonderfull article
# my wonderfull article | TechCrunch
# TechCrunch | my wonderful article
# my wonderful article | TechCrunch
title_words = title.split()

# check for an empty title
Expand Down