1 parent 731f104 commit 6ef3f68Copy full SHA for 6ef3f68
1 file changed
goose/extractors/content.py
@@ -23,6 +23,7 @@
23
import re
24
from copy import deepcopy
25
from urlparse import urlparse, urljoin
26
+from goose.extractors import BaseExtractor
27
from goose.utils import StringSplitter
28
from goose.utils import StringReplacement
29
from goose.utils import ReplaceSequence
@@ -55,20 +56,7 @@
55
56
]
57
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
+class ContentExtractor(BaseExtractor):
72
73
def get_language(self):
74
"""\
0 commit comments