add keep_only_tags and remove_tags

This commit is contained in:
jn809 2020-03-29 15:11:09 +08:00
parent 20e88f1f8e
commit cbe910cda6

View File

@ -39,10 +39,11 @@ class MitTechnologyReview(BasicNewsRecipe):
keep_only_tags = [ keep_only_tags = [
classes( classes(
'article-topper__topic article-topper__title article-topper__media-wrap article-body__content'), 'article-topper__topic article-topper__title article-topper__media-wrap article-body__content storyContent'),
] ]
remove_tags = [ remove_tags = [
classes('l-article-list'), classes('l-article-list signup-wrapper'),
dict(name="svg")
] ]
def parse_index(self): def parse_index(self):