mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
5f07a78b0a
commit
34e3b0e81b
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user