mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #6935 (The formating on the blog for neals nuze was changed after i submitted :()
This commit is contained in:
parent
8ce7d6ca74
commit
b09e819422
@ -1,4 +1,5 @@
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
from calibre.ebooks.BeautifulSoup import BeautifulSoup, re
|
||||||
class AdvancedUserRecipe1282101454(BasicNewsRecipe):
|
class AdvancedUserRecipe1282101454(BasicNewsRecipe):
|
||||||
title = 'Nealz Nuze'
|
title = 'Nealz Nuze'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
@ -11,11 +12,11 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe):
|
|||||||
linearize_tables = True
|
linearize_tables = True
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
|
|
||||||
masthead_url = 'http://boortz.com/images/nuze_logo.gif'
|
masthead_url = 'http://boortz.com/images/nuze_logo.gif'
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='td', attrs={'id':['contentWellCell']})
|
dict(name='td', attrs={'id':['contentWellCell']})
|
||||||
|
|
||||||
]
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='a', attrs={'class':['blogPermalink']}),
|
dict(name='a', attrs={'class':['blogPermalink']}),
|
||||||
@ -25,13 +26,13 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe):
|
|||||||
remove_tags_after = [dict(name='div', attrs={'class':'blogEntryBody'}),]
|
remove_tags_after = [dict(name='div', attrs={'class':'blogEntryBody'}),]
|
||||||
feeds = [
|
feeds = [
|
||||||
('NUZE', 'http://boortz.com/nealz_nuze_rss/rss.xml')
|
('NUZE', 'http://boortz.com/nealz_nuze_rss/rss.xml')
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user