This commit is contained in:
Kovid Goyal 2014-02-14 19:06:48 +05:30
parent 5f07a78b0a
commit 34e3b0e81b

View File

@ -9,8 +9,14 @@ class AssociatedPress(BasicNewsRecipe):
use_embedded_content = False use_embedded_content = False
language = 'en' language = 'en'
no_stylesheets = True no_stylesheets = True
auto_cleanup = True conversion_options = {
auto_cleanup_keep = '//tr[@class="ap-story-td"]' 'linearize_tables' : True
}
keep_only_tags = {'name':'table', 'attrs':{'class':lambda x: x and 'ap-story-table' in x.split()}}
remove_tags = [
{'class':['ap-mediabox-table']},
{'name':'img', 'src':lambda x: x and '//analytics.' in x},
]
def parse_index(self): def parse_index(self):
feeds = [] feeds = []