Skip to content

Commit 6ef3f68

Browse files
author
Xavier Grangier
committed
grangier#188 - contentextractor inherits form baseextractor
1 parent 731f104 commit 6ef3f68

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

goose/extractors/content.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import re
2424
from copy import deepcopy
2525
from urlparse import urlparse, urljoin
26+
from goose.extractors import BaseExtractor
2627
from goose.utils import StringSplitter
2728
from goose.utils import StringReplacement
2829
from goose.utils import ReplaceSequence
@@ -55,20 +56,7 @@
5556
]
5657

5758

58-
class ContentExtractor(object):
59-
60-
def __init__(self, config, article):
61-
# config
62-
self.config = config
63-
64-
# parser
65-
self.parser = self.config.get_parser()
66-
67-
# article
68-
self.article = article
69-
70-
# stopwords class
71-
self.stopwords_class = config.stopwords_class
59+
class ContentExtractor(BaseExtractor):
7260

7361
def get_language(self):
7462
"""\

0 commit comments

Comments
 (0)