mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
BabyOnline.ro by Silviu Cotoara and update ecuisine.ro, egirl.ro and tabu.ro
This commit is contained in:
parent
e910505e4e
commit
deb05bae33
59
recipes/babyonline.recipe
Normal file
59
recipes/babyonline.recipe
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = u'2011, Silviu Cotoar\u0103'
|
||||||
|
'''
|
||||||
|
babyonline.ro
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class BabyOnline(BasicNewsRecipe):
|
||||||
|
title = u'Baby Online'
|
||||||
|
__author__ = u'Silviu Cotoar\u0103'
|
||||||
|
description = u'De la p\u0103rinte la p\u0103rinte'
|
||||||
|
publisher = u'Baby Online'
|
||||||
|
oldest_article = 50
|
||||||
|
language = 'ro'
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
use_embedded_content = False
|
||||||
|
category = 'Ziare,Reviste,Copii,Mame'
|
||||||
|
encoding = 'utf-8'
|
||||||
|
cover_url = 'http://www.babyonline.ro/images/default/logo.gif'
|
||||||
|
|
||||||
|
conversion_options = {
|
||||||
|
'comments' : description
|
||||||
|
,'tags' : category
|
||||||
|
,'language' : language
|
||||||
|
,'publisher' : publisher
|
||||||
|
}
|
||||||
|
|
||||||
|
keep_only_tags = [
|
||||||
|
dict(name='div', attrs={'id':'article_container'})
|
||||||
|
]
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='div', attrs={'id':'bar_nav'}),
|
||||||
|
dict(name='div', attrs={'id':'service_send'}),
|
||||||
|
dict(name='div', attrs={'id':'other_videos'}),
|
||||||
|
dict(name='div', attrs={'class':'dot_line_yellow'}),
|
||||||
|
dict(name='a', attrs={'class':'print'}),
|
||||||
|
dict(name='a', attrs={'class':'email'}),
|
||||||
|
dict(name='a', attrs={'class':'YM'}),
|
||||||
|
dict(name='a', attrs={'class':'comment'}),
|
||||||
|
dict(name='div', attrs={'class':'tombstone_cross'}),
|
||||||
|
dict(name='span', attrs={'class':'liketext'})
|
||||||
|
]
|
||||||
|
|
||||||
|
remove_tags_after = [
|
||||||
|
dict(name='div', attrs={'id':'service_send'})
|
||||||
|
]
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'Feeds', u'http://www.babyonline.ro/rss_homepage.xml')
|
||||||
|
]
|
||||||
|
|
||||||
|
def preprocess_html(self, soup):
|
||||||
|
return self.adeify_images(soup)
|
@ -14,14 +14,14 @@ class EcuisineRo(BasicNewsRecipe):
|
|||||||
__author__ = u'Silviu Cotoar\u0103'
|
__author__ = u'Silviu Cotoar\u0103'
|
||||||
description = u'Reinventeaz\u0103 pl\u0103cerea de a g\u0103ti'
|
description = u'Reinventeaz\u0103 pl\u0103cerea de a g\u0103ti'
|
||||||
publisher = 'eCuisine'
|
publisher = 'eCuisine'
|
||||||
oldest_article = 5
|
oldest_article = 50
|
||||||
language = 'ro'
|
language = 'ro'
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
category = 'Ziare,Retete,Bucatarie'
|
category = 'Ziare,Retete,Bucatarie'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
cover_url = ''
|
cover_url = 'http://www.ecuisine.ro/sites/all/themes/ecuisine/images/logo.gif'
|
||||||
|
|
||||||
conversion_options = {
|
conversion_options = {
|
||||||
'comments' : description
|
'comments' : description
|
||||||
@ -31,8 +31,8 @@ class EcuisineRo(BasicNewsRecipe):
|
|||||||
}
|
}
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='div', attrs={'class':'page-title'})
|
dict(name='h1', attrs={'id':'page-title'})
|
||||||
, dict(name='div', attrs={'class':'content clearfix'})
|
, dict(name='div', attrs={'class':'field-item even'})
|
||||||
]
|
]
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
|
@ -31,8 +31,8 @@ class EgirlRo(BasicNewsRecipe):
|
|||||||
}
|
}
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='div', attrs={'id':'title_art'})
|
dict(name='div', attrs={'id':'content_art'})
|
||||||
, dict(name='div', attrs={'class':'content_style'})
|
, dict(name='div', attrs={'class':'content_articol'})
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
|
BIN
recipes/icons/babyonline.png
Normal file
BIN
recipes/icons/babyonline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 256 B |
@ -37,10 +37,12 @@ class TabuRo(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'class':'asemanatoare'})
|
dict(name='div', attrs={'class':'asemanatoare'}),
|
||||||
|
dict(name='div', attrs={'class':'social'})
|
||||||
]
|
]
|
||||||
|
|
||||||
remove_tags_after = [
|
remove_tags_after = [
|
||||||
|
dict(name='div', attrs={'class':'social'}),
|
||||||
dict(name='div', attrs={'id':'comments'}),
|
dict(name='div', attrs={'id':'comments'}),
|
||||||
dict(name='div', attrs={'class':'asemanatoare'})
|
dict(name='div', attrs={'class':'asemanatoare'})
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user